Skip to content

[SPARK-56731][PYTHON] Fix type annotation for DataFrame.replace#55694

Closed
gaogaotiantian wants to merge 1 commit into
apache:masterfrom
gaogaotiantian:df-replace-type-hint
Closed

[SPARK-56731][PYTHON] Fix type annotation for DataFrame.replace#55694
gaogaotiantian wants to merge 1 commit into
apache:masterfrom
gaogaotiantian:df-replace-type-hint

Conversation

@gaogaotiantian
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Fix type annotation for DataFrame.replace

Why are the changes needed?

The old one is actually wrong because you can't pass subset as a positional argument if you skip value.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI.

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

No.

zhengruifeng pushed a commit that referenced this pull request May 6, 2026
### What changes were proposed in this pull request?

Fix type annotation for `DataFrame.replace`

### Why are the changes needed?

The old one is actually wrong because you can't pass `subset` as a positional argument if you skip `value`.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

CI.

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

No.

Closes #55694 from gaogaotiantian/df-replace-type-hint.

Authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Signed-off-by: Ruifeng Zheng <ruifengz@foxmail.com>
(cherry picked from commit 4ec0da9)
Signed-off-by: Ruifeng Zheng <ruifengz@foxmail.com>
@zhengruifeng
Copy link
Copy Markdown
Contributor

merged to master and 4.x

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants