-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
get_group(...) fails for groupby(...) based on a function #22257
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
Labels
Bug
good first issue
Groupby
MultiIndex
Needs Tests
Unit test(s) needed to prevent regressions
Regression
Functionality that used to work in a prior pandas version
Comments
The docs are rather ambiguous on MultiIndex support but I think this makes sense. Investigation and PRs are always welcome. cc @toobaz |
toobaz
added a commit
to toobaz/pandas
that referenced
this issue
Aug 11, 2018
4 tasks
toobaz
added a commit
to toobaz/pandas
that referenced
this issue
Aug 11, 2018
toobaz
added a commit
to toobaz/pandas
that referenced
this issue
Aug 12, 2018
Thanks for the fix ! |
I'm seeing the correct behavior on main. I think the test from toobaz@9123f7d could be added to resolve this issue. |
take |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug
good first issue
Groupby
MultiIndex
Needs Tests
Unit test(s) needed to prevent regressions
Regression
Functionality that used to work in a prior pandas version
Code Sample, a copy-pastable example if possible
Problem description
The code raises:
NotImplementedError: isna is not defined for MultiIndex
Note: That issue happens with pandas==0.21.1. It does NOT happen with pandas==0.19.
Expected Output
df3.groupby(...).get_group(('A', 1)) should not raise an error but return the group ('A', 1):
Output of
pd.show_versions()
pandas: 0.21.1
pytest: None
pip: 9.0.1
setuptools: 39.0.1
Cython: None
numpy: 1.13.3
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.5.0
sphinx: None
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 0.999999999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: