Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FutureWarning: Support for nested sequences for 'parse_dates' in pd.read_csv is deprecated #16

Closed
MaykThewessen opened this issue May 23, 2024 · 0 comments · Fixed by #18
Assignees

Comments

@MaykThewessen
Copy link

/Users/mayk/miniconda3/lib/python3.12/site-packages/knmi/parsers.py:119:
FutureWarning: Support for nested sequences for 'parse_dates' in pd.read_csv is deprecated.

Combine the desired columns with pd.to_datetime after parsing instead.
df = pd.read_csv(StringIO(data), parse_dates=[['YYYYMMDD', 'H']],

/Users/mayk/miniconda3/lib/python3.12/site-packages/knmi/parsers.py:119:
FutureWarning: The argument 'date_parser' is deprecated and will be removed in a future version.

Please use 'date_format' instead, or read your data in as 'object' dtype and then call 'to_datetime'.
df = pd.read_csv(StringIO(data), parse_dates=[['YYYYMMDD', 'H']],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants