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

API: __name__ of wrong #23551

h-vetinari opened this issue Nov 7, 2018 · 0 comments


Copy link

commented Nov 7, 2018

While working on #23167, I found out that the names of several methods that are generated by wrappers are not set correctly (which matters because I need them for error reporting).


>>> import pandas as pd
>>> pd.Series(['']).str.lower.__name__
>>> pd.Series(['']).str.upper.__name__
>>> pd.Series(['']).str.title.__name__
>>> pd.Series(['']).str.capitalize.__name__
>>> pd.Series(['']).str.swapcase.__name__
>>> # same for isalnum, isalpha, isdigit, isspace, islower, isupper, istitle, isnumeric, isdecimal
>>> pd.Series(['']).str.count.__name__
>>> pd.Series(['']).str.startswith.__name__
>>> pd.Series(['']).str.endswith.__name__
>>> pd.Series(['']).str.findall.__name__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.