Skip to content

COMPAT: alias .to_numpy() for scalars #24653

Closed
@jreback

Description

@jreback

I think we achieve a bit more consistency in our interfaces if we alias .to_numpy() to .to_datetime64() and .to_timedelta64() for Timedelta and Timestamp respectively.

xref https://github.com/pandas-dev/pandas/pull/24486/files#diff-26a6d2ca7adfca586aabbb1c9dd8bf36L235

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functionsDatetimeDatetime data dtypeTimedeltaTimedelta data type

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions