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

BUG: to_datetime returns KeyError: 'p' when %p specified in format string #5361

Closed
RomanPekar opened this issue Oct 28, 2013 · 1 comment
Closed

Comments

@RomanPekar
Copy link
Contributor

Here's a question on SO - http://stackoverflow.com/questions/19635704/keyerror-in-pandas-to-datetime-using-custom-format, also possible to check it like this:

pd.to_datetime('09/30/2013 04:14 PM', format="%m/%d/%Y %I:%M %p")

It works for python time:

time.strptime('09/30/2013 04:14 PM', "%m/%d/%Y %I:%M %p")
@jreback
Copy link
Contributor

jreback commented Jan 24, 2014

closed via b5535b9

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

Successfully merging a pull request may close this issue.

2 participants