[HOTFIX] Fix indexing into a single row of a MultiIndex#9870
[HOTFIX] Fix indexing into a single row of a MultiIndex#9870raydouglass merged 12 commits intorapidsai:branch-21.12from
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-21.12 #9870 +/- ##
================================================
- Coverage 10.60% 10.60% -0.01%
================================================
Files 118 118
Lines 20081 20082 +1
================================================
Hits 2130 2130
- Misses 17951 17952 +1
Continue to review full report at Codecov.
|
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
@robertmaynard for some reason we're seeing the @raydouglass I apologize for lumping the formatting change into this PR. I'm happy to split it out if you prefer, but I figured that fewer hotfix PRs would be better at this stage. Let me know how you'd like me to proceed with that. |
I think it is due to how we pull rapids-cmake format file via main instead of the current 'nearest` branch. ( https://github.com/rapidsai/cudf/blob/branch-22.02/ci/checks/style.sh#L17 ) So before 21.12 was released, main pointed at 21.10 and therefore we didn't have the latest changes. |
This is fine |
brandon-b-miller
left a comment
There was a problem hiding this comment.
Python approval
It was recently noticed that the `IncludeCategories`:
```
IncludeCategories:
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
```
In the `.clang-format` are not really necessary as `ext` has no meaning in RAPIDS. This PR removes these.
Depends on #9870.
Authors:
- Conor Hoekstra (https://github.com/codereport)
Approvers:
- Nghia Truong (https://github.com/ttnghia)
- Bradley Dice (https://github.com/bdice)
- MithunR (https://github.com/mythrocks)
- Ram (Ramakrishna Prabhu) (https://github.com/rgsl888prabhu)
URL: #9876
Given a dataframe
gdf, this PR fixes indexing the behavior of two types of indexing: 1)gdf.loc[x](as opposed togdf.loc[x, y]where the column is also specified) and 2)gdf.iloc[x], which failed erroneously.