Skip to content

[SPARK-55345][PYTHON][PS] Do not pass unit and closed to Timedelta for pandas 3#54123

Open
gaogaotiantian wants to merge 2 commits intoapache:masterfrom
gaogaotiantian:pandas3-timedelta-init
Open

[SPARK-55345][PYTHON][PS] Do not pass unit and closed to Timedelta for pandas 3#54123
gaogaotiantian wants to merge 2 commits intoapache:masterfrom
gaogaotiantian:pandas3-timedelta-init

Conversation

@gaogaotiantian
Copy link
Contributor

What changes were proposed in this pull request?

Raise an error if user tries to pass unit or closed to TimedeltaIndex

Why are the changes needed?

pandas 3 does not support these two parameters anymore.

Does this PR introduce any user-facing change?

Yes, it will behave more like pandas 3.

How was this patch tested?

Local test does not report this error when constructing TimedeltaIndex.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

JIRA Issue Information

=== Sub-task SPARK-55345 ===
Summary: Timedelta does not take unit and closed anymore
Assignee: None
Status: Open
Affected: ["4.2.0"]


This comment was automatically generated by GitHub Actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant