I have a file which has all datatypes as string. I want to type cast the data.
for s3_file in keys:
analytics_df = pd.read_csv(s3_file, encoding="utf8")
analytics_df = analytics_df.juice.astype(float).fillna(0.0)
print(analytics_df.dtypes)
I am getting these errors:
ValueError: could not convert string to float: 'None'