Boomer desperate for help.
[removed]
Posted May 19, 2022, 3:01 PM UTC
[removed]
Posted May 19, 2022, 3:01 PM UTC
To be perfectly honest it's the company's fault. It's unreasonable for them to expect you to fix it. You need to push back and make the case to hire a replacement dev. They only have to be a junior dev or a bright kid on an apprenticeship.
But anyway, googling the function you're calling, and because the error is due to use of an incompatible date format, I would try getting rid of that format= arg altogether, and call it with infer_datetime_format=True instead.
https://pandas.pydata.org/docs/reference/api/pandas.to_datetime.html
Either that or print out a few lines and see what the format string should be, then correct it.
[removed]
[removed]
https://stackoverflow.com/questions/25015711/time-data-does-not-match-format
Maybe something similar to this
Your post was removed because the code you provided was either poorly formatted, too long for Reddit, or did not include any formatting at all. This is against Rule 2.
You can get your post approved if you format your code properly and then respond to this message letting us know.
If your code is rather long, or you don't feel comfortable using Reddit's formatting you can either have a look at this guide or use external services, such as pastebin.
We're enforcing this, even for short codes, because otherwise Reddit will interpret a few characters differently or not at all, messing up your code in the process, which makes helping really unpleasant/impossible.
If you believe your post was removed in error, please respond to this comment and let us know.
[removed]
print
df["Datetime"]to see what it looks like. Apparently it doesn't match the expected format[removed]