Skip to content

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

Closed
@oalfred

Description

@oalfred

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions