Reputation: 157
There are a lot of cells with data that looks like this (I'm analyzing an E-Commerce dataset):
Mode d'été Flare Sleeve Plus Size T-shirt hors de l'épaule
How would you recommend that I clean this dataset? I know string replace is an option, but is there a better/more efficient option? I only really need "Flare Sleeve Plus Size T-shirt"
Upvotes: 0
Views: 185
Reputation: 2159
Use this:
print("Mode d'été Flare Sleeve Plus Size T-shirt hors de l'épaule ".encode('WINDOWS-1252').decode())
Upvotes: 1