I have a CSV with 19 columns. Many of the values are decimals formatted like '56,2' [german/eureopean format]. No big issue, I thought using the 'decimal=' parameter:
self.imported_csv = pd.read_csv(full_path, encoding='utf_16_le', sep=';', on_bad_lines='warn', decimal=',')
Works fine - except for exactly ONE column. So every other column is read correctly (floats), but the ONE columns keeps the ',' as decimal seperator. Any idea why this is possible?
Not knowing why, I tried following workaround:
self.imported_csv['Luftdruck (hPa)'] = self.imported_csv['Luftdruck (hPa)'].astype(float)
... unfortunately I already expected the result: could not convert string to float: '979,5'.
Any idea what problem I am facing here? Thanks in advance.
Here is one example row of the CSV:

Before reading the CSV, you might consider cleaning the problematic column to remove any non-numeric characters or inconsistencies.
Try explicitly specifying the locale using the locale parameter in the read_csv function:
Also please ensure below points :