Hi team, I am trying to save a dataset into parque...
# questions
c
Hi team, I am trying to save a dataset into parquet, and fall into this error message saying
DataSetError: Failed while saving data to data set ParquetDataSet(filepath= <PATH>, protocol={}, save_args={}.
("Could not convert '0.39.11' with type str: tried to convert to int64", "Conversion failed for column <COLUMN NAME> with type object")
The column in question has two types of values: an 8 digit number and string like 0.39.11. It seems that it automatically identified the column as an int and want to convert it as such. What would be the correct way of dealing with this error ?
👋🏼 1
s
Hello,
ParquetDataset
requires the same type for the column so I think casting the column you are having a problem with as a string should resolve this.