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

API add date_format to read_csv #50528

Closed
MarcoGorelli opened this issue Jan 2, 2023 · 5 comments
Closed

API add date_format to read_csv #50528

MarcoGorelli opened this issue Jan 2, 2023 · 5 comments
Labels
API Design Datetime Datetime data dtype Needs Discussion Requires discussion from core team before further action

Comments

@MarcoGorelli
Copy link
Member

From #2586

Currently, once can to

read_csv(path, parse_dates=True, date_parser=lambda x: to_datetime(x, format=fmt)

and the suggestion is to add a date_format argument such that you could do

read_csv(path, parse_dates=True, date_format=fmt)

and have it do the same thing

@MarcoGorelli MarcoGorelli added Datetime Datetime data dtype API Design labels Jan 2, 2023
@MarcoGorelli MarcoGorelli changed the title API add date_format to read_csv` API add date_format to read_csv Jan 2, 2023
@luke396

This comment was marked as off-topic.

@MarcoGorelli

This comment was marked as off-topic.

@MarcoGorelli MarcoGorelli added the Needs Discussion Requires discussion from core team before further action label Jan 3, 2023
@luke396

This comment was marked as off-topic.

@MarcoGorelli

This comment was marked as off-topic.

@MarcoGorelli
Copy link
Member Author

closing in favour of #50601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Datetime Datetime data dtype Needs Discussion Requires discussion from core team before further action
Projects
None yet
Development

No branches or pull requests

2 participants