Skip to content

Datetime units not listed in pd.to_timedelta docstring #23248

Closed
@JoshuaC3

Description

@JoshuaC3

Problem description

I wanted to do a month timedelta but upon checking the pd.to_timedelta docstring I gave up on this as an option because there was no 'M' option. I then tried many other round-the-houses methods until someone answered this question on stackoverflow.

This is not updated in the most recent docs but would be good to include, I believe.

Expected Output

To see full list of (or reference to) all units that can be used.

Output of pd.show_versions()

23.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions