sjoelly
sjoelly

Reputation: 157

How to clean dataset with special characters?

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

Answers (1)

Martin J
Martin J

Reputation: 2159

Use this:

print("Mode d'été Flare Sleeve Plus Size T-shirt hors de l'épaule ".encode('WINDOWS-1252').decode())

Upvotes: 1

Related Questions