Skip to content
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

BUG: v1.5.0 dataframe.replace function cause python to crash #48843

Closed
2 of 3 tasks
WilliamQue opened this issue Sep 29, 2022 · 1 comment
Closed
2 of 3 tasks

BUG: v1.5.0 dataframe.replace function cause python to crash #48843

WilliamQue opened this issue Sep 29, 2022 · 1 comment
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@WilliamQue
Copy link

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

import pandas as pd
import numpy as np

t = pd.DataFrame({'a':[1,3,2,np.nan]})
t.replace(np.nan,None,inplace=True)

Issue Description

After using replace function, python will crash.

Expected Behavior

Nothing

Installed Versions

INSTALLED VERSIONS

python : 3.9.13.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 165 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Chinese (Simplified)_China.936
pandas : 1.5.0

@WilliamQue WilliamQue added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 29, 2022
@phofl
Copy link
Member

phofl commented Sep 29, 2022

Hi, this is a duplicate of #45725

@phofl phofl closed this as completed Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

No branches or pull requests

2 participants