Skip to content

BUG: wrong type is returned by iat[] for date time series #7729

@yonil7

Description

@yonil7

These return object of type class pandas.tslib.Timestamp:

    print type(pd.Series(['2014-01-01', '2014-02-02'], dtype='datetime64[ns]')[0])
    print type(pd.Series(['2014-01-01', '2014-02-02'], dtype='datetime64[ns]').min())

but using iat[] returns object of type type numpy.datetime64:

    print type(pd.Series(['2014-01-01', '2014-02-02'], dtype='datetime64[ns]').iat[0])

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDatetimeDatetime data dtypeDtype ConversionsUnexpected or buggy dtype conversionsIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions