Skip to content

Timestamps are coerced to different types in 0.25.3 and 1.0.0 when selecting a row #31693

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

Closed
oalfred opened this issue Feb 5, 2020 · 2 comments

Comments

@oalfred
Copy link

oalfred commented Feb 5, 2020

Code Sample, a copy-pastable example if possible

import pandas as pd
df = pd.DataFrame({'TIME': [pd.to_datetime('2020-01-01 12:00')], 'STRING': ['ABC']})
print(type(df.iloc[0]['TIME']))

Problem description

In 0.25.3 the code above results in <class 'pandas._libs.tslibs.timestamps.Timestamp'> whereas in 1.0.0 it is numpy.datetime64. I could not find anything about this specifically in the release notes. Is it intended?

@jreback
Copy link
Contributor

jreback commented Feb 5, 2020

looks the same as #31649

which is already patched for 1.0.1

cc @jbrockmendel

@TomAugspurger
Copy link
Contributor

Yeah, thanks for the report @oalfred, but this has been fixed already.

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

No branches or pull requests

3 participants