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
I don't see a good argument for the .cast(pl.Datetime) not to default to just calling str.to_datetime.
That seems to be the behavior with dates.
df=pl.DataFrame({'datetime': ['2024-03-12']})
# This worksdf.select(pl.col('datetime').str.to_datetime())
# This also worksdf.select(pl.col('datetime').cast(pl.Date))
The text was updated successfully, but these errors were encountered:
Description
Currently this code works:
But this code fails
I don't see a good argument for the
.cast(pl.Datetime)
not to default to just callingstr.to_datetime
.That seems to be the behavior with dates.
The text was updated successfully, but these errors were encountered: