Skip to content

ENH: NaT.timestamp() should return nan and implement Series.dt.timestamp() #46723

@holymonson

Description

@holymonson

Is your feature request related to a problem?

Since Timestamp.timestamp() returns a float, it seems more appropriate that NaT.timestamp() returning nan instead of raising an error.
And then we could implement Series.dt.timestamp().

API breaking implications

Seems no.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DatetimeDatetime data dtypeEnhancementMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions