Inconsistent element types when using to_physical
on List(Datetime)
vs Array(Datetime, ...)
#19396
Open
2 tasks done
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
Calling
to_physical
on aSeries(dtype=List(Datetime))
casts the inner elements to an integer type, which is not the case for aSeries(dtype=Array(Datetime, ...))
.Technically this behaviour does match the doc, but the inconsistency does seem surprising.
Expected behavior
to_physical
on container types produces the same inner element type regardless of container type.Installed versions
The text was updated successfully, but these errors were encountered: