If you are reading in with read_csv
, you can specify how it interprets decimals with the decimal
parameter.
e.g.
your_df = pd.read_csv('/your_path/your_file.csv',sep=';',decimal=",")
From the man pages:
thousands : str, optional
Thousands separator.
decimal : str, default ‘.’
Character to recognize as decimal point
(e.g. use ‘,’ for European data).