Failure when attempting to parse pendulum.DateTime into DataFrames #20544
Labels
A-temporal
Area: date/time functionality
bug
Something isn't working
P-medium
Priority: medium
python
Related to Python Polars
Checks
Reproducible example
The script below shows how polars (1.18.0) has expected behaviour for
datetime
datetime objects and fails to parse thependulum
counterpart.The error given by the script is:
Log output
No response
Issue description
Polars does not parse
pendulum.DateTime
objects when adding to DataFrame with thewith_columns
method.Issue appears to be with how timezone is encoded, although polars works fine with a timezone-aware
datetime.datetime
object.Expected behavior
Polars to parse the
pendulum.DateTime
column and add as column to DataFrame with typepolars.Datetime
.Installed versions
The text was updated successfully, but these errors were encountered: