Data Conversion Error while applying a function to each row in pandas Python

前端 未结 1 619
你的背包
你的背包 2021-01-11 18:52

I have a data frame in pandas in python which resembles something like this -

    contest_login_count  contest_participation_count  ipn_ratio
0                   


        
相关标签:
1条回答
  • 2021-01-11 18:58

    I think there is problem dtype of some column is not float.

    You need cast it by astype:

    df['colname'] = df['colname'].astype(float)
    
    0 讨论(0)
提交回复
热议问题