Can't write Dataframe to Dataset
![mahmoud_shihab](https://us.v-cdn.net/6038231/uploads/lithium_attachments/n7306i50F036487597408F.jpg)
mahmoud_shihab
Partner, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 42 Partner
So my current setup I have some .las files in a Managed folder, and I convert them into DataFrames using the library lasio.
After converting them into DataFrames and joining them to one singular DataFrame, I try to write it into the dataset on the other end of the code recipe by running this:
TypeError: ('write_from_dataframe is a expecting a DataFrame object. You provided a DataFrame', AttributeError("'NumericBlock' object has no attribute 'is_datetimetz'"))
And I get this error
LAS.write_with_schema(LAS_df)
I'm not quite sure why this is happening and would appreciate any help
Operating system used: Ubuntu
Answers
-
mahmoud_shihab Partner, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 42 Partner
I wasn't sure if it was something to do with the library I was using or something I am doing wrong, but I decided to do a small test and it still failed....
LAS = dataiku.Dataset("LAS") LAS.write_with_schema(pd.DataFrame(data={"Hello":['H','e','l','l','o']}))
Can someone help me know what I am doing wrong?