-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: pd.Series.rename does not return None with inplace=True #42481
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
Comments
Thanks for reporting this @Omerdan03! If you (or anyone else) is interested in contributing a fix, looks like the issue is here: Lines 1750 to 1763 in 844b388
Hopefully just returning |
Hello, I am new here. I would like to contribute to this issue. |
Looks like someone already put up a pr, please feel free to contribute to any other issues! (filtering by good first issue is also a good way to find good issues to start with) |
Duplicate of #28920? |
Closing as duplicate of #28920 |
[ X] I have checked that this issue has not already been reported.
[ X] I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
f should be None like other inplace functionality.
instead f is Series object.
[this should explain why the current behaviour is a problem and why the expected output is a better solution]
Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : b5958ee
python : 3.6.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.8.0-59-generic
Version : #66~20.04.1-Ubuntu SMP Thu Jun 17 11:14:10 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.1.5
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 52.0.0.post20210125
Cython : None
pytest : 6.2.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : 1.3.9
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.16.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : 0.9.0
fastparquet : None
gcsfs : None
matplotlib : 3.3.4
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.5.4
sqlalchemy : None
tables : 3.6.1
tabulate : None
xarray : None
xlrd : 1.2.0
xlwt : 1.3.0
numba : 0.53.1
The text was updated successfully, but these errors were encountered: