Download tasks/date-string-sort-pitfall/environment/date_parser.py from SkillEvolBench-Team/Skill-Evol-Bench: direct link, hf CLI and curl.
- Browser
- Download file 166 Bytes
-
https://huggingface.co/datasets/SkillEvolBench-Team/Skill-Evol-Bench/resolve/main/tasks/date-string-sort-pitfall/environment/date_parser.py
- Command line
-
hf download hf://datasets/SkillEvolBench-Team/Skill-Evol-Bench/tasks/date-string-sort-pitfall/environment/date_parser.py
-
curl -L -o date_parser.py https://huggingface.co/datasets/SkillEvolBench-Team/Skill-Evol-Bench/resolve/main/tasks/date-string-sort-pitfall/environment/date_parser.py
166 Bytes
| from __future__ import annotations | |
| import pandas as pd | |
| def parse_display_dates(series: pd.Series) -> pd.Series: | |
| return pd.to_datetime(series, errors="coerce") | |