You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the cause of the issue is that datetime is parsed as ns whereas the default time_unit for pl.Datetime is us and they are considered different.
Yup; we still need a slightly better way to match Datetime in the general case, as we do indeed default to μs and pandas defaults to ns. We have started to add "official" dtype groups, such as pl.datatypes.INTEGER_DTYPES that you can select with. A pl.datatypes.DATETIME_DTYPES might be a start, covering all of the different time-units 🤔
Polars version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Issue description
df.select(pl.col(pl.Datetime))
doesn't return thedatetime
column if theDataFrame
was created withpl.from_pandas
Reproducible example
Expected behavior
works
Installed versions
The text was updated successfully, but these errors were encountered: