Commit aa4dc71
BUG: Fix 57735 (#59335)
* Revert "CLN: Remove special cases in indexing ops (#52063)"
This reverts commit 8e456d3.
* remove old comments, add test
* use better test name
* Update pandas/tests/indexing/test_loc.py
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
* check for empty index first
* assert assign to empty does not change frame
* format
---------
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>1 parent f25a09e commit aa4dc71
2 files changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
814 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
815 | 818 | | |
816 | 819 | | |
817 | 820 | | |
| |||
827 | 830 | | |
828 | 831 | | |
829 | 832 | | |
830 | | - | |
831 | | - | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
832 | 838 | | |
833 | 839 | | |
834 | 840 | | |
| |||
2389 | 2395 | | |
2390 | 2396 | | |
2391 | 2397 | | |
2392 | | - | |
| 2398 | + | |
2393 | 2399 | | |
2394 | 2400 | | |
2395 | 2401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3272 | 3272 | | |
3273 | 3273 | | |
3274 | 3274 | | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
0 commit comments