Skip to content

convert integer to datetime bug, Python int too large to convert to C long #10987

Closed
@poc7667

Description

@poc7667

pandas version pandas (0.16.1)

for field in ["release_date", "date"]:
    if field in df:
        df[field] = pd.to_datetime(df[field], unit="ms")

Metadata

Metadata

Assignees

No one assigned

    Labels

    DatetimeDatetime data dtypeError ReportingIncorrect or improved errors from pandas

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions