Unreliable Pandas Timestamp behavior. Almost the same input - different results

Viewed 51

Everything is visible in the picture below but let me explain.

Lets create a Pandas timestamp object:

pd.Timestamp('2013, 11, 04') --> Timestamp('2013-11-04 00:00:00')

But, if you remove single space:

pd.Timestamp('2013,11, 04') --> Timestamp('2013-04-01 00:00:00')

To make it more bizzare:

pd.Timestamp('2013, 11,04') --> Timestamp('2013-11-01 00:00:00')

Now, what is this sorcery and who designed this behavior...
Any explanation that will not involve references to magical universe will be much appreciated.

Apparently its a bug. Reported and acknowledged. https://github.com/pandas-dev/pandas/issues/17265

enter image description here

0 Answers
Related