BUG: Incorrect parsing of ISO 8601 durations · Issue #36204 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@lmeyerov

Description

@lmeyerov


Code Sample, a copy-pastable example

pd.Timedelta('P1Y') pd.Timedelta('P1M') pd.Timedelta('P1W') pd.Timedelta('P1D') pd.Timedelta('P1DT1H') pd.Timedelta('PT1H') pd.Timedelta('P1H')

Problem description

Trying most iso8601 duration formats fails.

For above examples:

Encountered while trying to figure out neo4j.time.Duration().isoformat() -> pandas ->arrow > rapids cudf timedelta[*] . Neo4j returns values like P1Y3M15DT2H3M and P1Y3M.