from_pandas
behaviour change/regression (series constructor "strict" changes)
#18092
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
FYI: @stinodego, looks related to #16939.
Simplified further, the root cause looks like
Series
constructor strictness changes, as we get the same error even when settingstrict=False
:Issue description
Previously (pre 1.0) this would convert the unexpected
date
value tonull
(as per non-strict behaviour).Expected behavior
Previous behaviour would create the frame like so, with invalid values set to
null
:We should likely expose the "strict" param to
from_pandas
to opt-in to this behaviour (the underlyingpandas_to_pyseries
andpandas_to_pydf
methods already accept it).Passing through "strict" without further changes doesn't seem sufficient to fix the issue though, as demonstrated in the
Series
simplification.Installed versions
The text was updated successfully, but these errors were encountered: