Discover this year's submissions to the Dataiku Frontrunner Awards and give kudos to your favorite use cases and success stories!READ MORE

Can't write Dataframe to Dataset

mahmoud_shihab
Level 3
Level 3
Can't write Dataframe to Dataset

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:

 

LAS.write_with_schema(LAS_df)

 

And I get this error

TypeError: ('write_from_dataframe is a expecting a DataFrame object. You provided a DataFrame', AttributeError("'NumericBlock' object has no attribute 'is_datetimetz'"))

 I'm not quite sure why this is happening and would appreciate any help


Operating system used: Ubuntu

0 Kudos
1 Reply
mahmoud_shihab
Level 3
Level 3
Author

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?

0 Kudos

Labels

?

Setup info

?
A banner prompting to get Dataiku