Skip to content

Series replace error #59552

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 21, 2024
Merged

Series replace error #59552

merged 11 commits into from
Aug 21, 2024

Conversation

fbourgey
Copy link
Contributor

@mroeschke mroeschke added Error Reporting Incorrect or improved errors from pandas Series Series data structure labels Aug 19, 2024
fbourgey and others added 3 commits August 19, 2024 17:14
removed rst entry

Co-authored-by: Matthew Roeschke <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
Co-authored-by: Matthew Roeschke <[email protected]>
@mroeschke
Copy link
Member

ruff....................................................................................................Failed
- hook id: ruff
- exit code: 1

pandas/core/generic.py:7493:89: E501 Line too long (89 > 88)
     |
7491 |                     if isinstance(self, ABCSeries):
7492 |                         raise ValueError(
7493 |                             "to_replace and value cannot be dict-like for Series.replace"
     |                                                                                         ^ E501
7494 |                         )

@mroeschke mroeschke added this to the 3.0 milestone Aug 21, 2024
@mroeschke mroeschke merged commit 320d613 into pandas-dev:main Aug 21, 2024
47 checks passed
@mroeschke
Copy link
Member

Thanks @fbourgey

@fbourgey fbourgey deleted the series-replace-error branch August 21, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas Series Series data structure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Series.replace(dict-like, dict-like) raises uninformative AttributeError
2 participants