Using clear
on Series of type Object
results in dtype Null
when first value is null
#15303
Closed
2 tasks done
Labels
A-dtype-object
Area: object data type
bug
Something isn't working
P-low
Priority: low
python
Related to Python Polars
Checks
Reproducible example
Log output
shape: (0,) Series: '' [null] [ ]
Issue description
Problematic code is here:
polars/crates/polars-core/src/series/mod.rs
Lines 166 to 167 in 9f1b08f
The first value is taken to infer the data type, while the first non-null value should be taken.
Expected behavior
Result in Series with
Object
data type.Installed versions
main
The text was updated successfully, but these errors were encountered: