pandas reading CSV data formatted with comma for thousands separator

前端 未结 3 465
迷失自我
迷失自我 2020-11-28 15:16

I am trying to create a dataframe in pandas using a CSV that is semicolon-delimited, and uses commas for the thousands separator on numeric data. Is there a way to read this

3条回答
  •  再見小時候
    2020-11-28 16:11

    The answer to this question should be short:

    df=pd.read_csv('filename.csv', thousands=',')
    

提交回复
热议问题