Closed alexandro-ag closed 2 years ago
Thanks for catching this! Looks like I didn't pass the fmt
arg to the underlying polars function 🤦♂️
Should be a quick fix.
I also extend my appreciation for all the work on this package. I've been searching for a tidyverse implementation in python and this one knocks my expectations out of the park. Thank you.
Glad to hear it's working out for you 😄
All set - you'll just need to update to the latest version of tidypolars:
import tidypolars as tp
from tidypolars import col
date_df = tp.Tibble(date = ['12/31/2021'])
date_df.mutate(date_parsed = tp.as_date(col('date'), fmt='%m/%d/%Y'))
┌────────────┬─────────────┐
│ date ┆ date_parsed │
│ --- ┆ --- │
│ str ┆ date │
╞════════════╪═════════════╡
│ 12/31/2021 ┆ 2021-12-31 │
└────────────┴─────────────┘
Works on my end! Thank for the prompt reply and response!
Good afternoon,
I think I found an issue with the as_date method. In the example per the documentation, the following succeeds:
However when parsing different formats (using the fmt argument), the date fails to parse:
I also extend my appreciation for all the work on this package. I've been searching for a tidyverse implementation in python and this one knocks my expectations out of the park. Thank you.