-2
I’m importing CSV files with pandas to do a data wipe. And I’m finding a problem. Some values have ';' .
For example: df[0][1] = "STREET A ; "
I import csv through: df = pd.read_csv('GUAXUPE.csv', header = None, Sep = ',', encoding = 'utf-8')
And despite having placed the separator as the comma, the pandas recognizes the ' ' as a separator and adds a field where it should not, deregulating part of the table.
I have already searched on the internet, I read the part of the documentation of pandas that speaks of read_csv() and I found no answer. Someone has an idea ?
I tried. It didn’t work. You keep recognizing the semicolon as a separator.
– brunocpradom
I’m trying to use the python CSV module as well. The function that converts csv to a dictionary ends up deleting two columns where these characters appear that are interfering with the table formation. On the one hand, it solves , but on the other hand it doesn’t,,
– brunocpradom