Open starzar opened 1 week ago
Can you provide data
to make your example reproducible?
As for the particular error:
polars.exceptions.SchemaError: type Int64 is incompatible with expected type Null
The vertical_relaxed
strategy may be of help:
cot_df_total = pl.concat([cot_df_total,cot_df_cur],how="vertical_relaxed")
Checks
Reproducible example
Log output
Issue description
https://drive.google.com/file/d/1gaLFuy6QyQNNE32eLFTz-HuAeX974wvw/view?usp=sharing
Fill_null() does not cast ALL Null values to other dtype(Nested Dataclass). Unnesting and casting null to other dtypes results in loss of "key" column names as the value columns.
Any way to get a complete fill_null() on nested dataframes without unnesting?
Expected behavior
All values should be filled with "zero" for pl.DataFrame(data).fill_null("zero")
Installed versions