I want to store a pandas data frame as Parquet file. But I got this error:
pyarrow.lib.ArrowTypeError: ("object of type <class 'str'> cannot be converted to int", 'Conversion failed for column foo with type object')
The column has mixed data types. I assume this is the problem. But how can I solve that?
#!/usr/bin/env python3
import pandas
df = pandas.DataFrame(
data={
'foo': [pandas.Timestamp('2022-06-01'), 'foobar']
}
)
print(df)