Commit f86f9f2
BUG: Setting values on DataFrame with multi-index .loc(axis=0) access adds columns (#58301)
* fixed the issue by making sure setting an item takes into account the axis argument if supplied to loc. added a test checking for this based on the github issue as well
* Running pre commit checks
* Pre commit checks
* Update doc/source/whatsnew/v3.0.0.rst
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
---------
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>1 parent e60bb8e commit f86f9f2
File tree
3 files changed
+29
-4
lines changed- doc/source/whatsnew
- pandas
- core
- tests/indexing/multiindex
3 files changed
+29
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
760 | | - | |
| 760 | + | |
761 | 761 | | |
762 | 762 | | |
763 | 763 | | |
| |||
857 | 857 | | |
858 | 858 | | |
859 | 859 | | |
860 | | - | |
861 | | - | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
862 | 864 | | |
863 | 865 | | |
864 | 866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
384 | 407 | | |
385 | 408 | | |
386 | 409 | | |
| |||
0 commit comments