Commit 4ae90ae
committed
BUG: Stacking with multiple mixed int/str levels
Add test case for mixed type stacking
Used wrong var name in the assert
Method to swap levels assuming ints are level numbers
Fix _stack_multi_columns to deal with mixed strs/ints
Extra testcases
Add fix to the release notes
Convert to label before swaplevel if possible
Revert "Method to swap levels assuming ints are level numbers"
This reverts commit 61f96fd3cb23cda9f9c7a6837b145ebd247a55cc.
More test cases
Use _convert_level_number() to sort columns1 parent 9dd675b commit 4ae90ae
File tree
3 files changed
+100
-9
lines changed- doc/source/whatsnew
- pandas
- core
- tests
3 files changed
+100
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
528 | | - | |
| 528 | + | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
599 | 616 | | |
600 | 617 | | |
601 | 618 | | |
602 | | - | |
| 619 | + | |
603 | 620 | | |
604 | 621 | | |
605 | | - | |
606 | | - | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
607 | 627 | | |
608 | 628 | | |
609 | 629 | | |
610 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
611 | 635 | | |
612 | 636 | | |
613 | 637 | | |
| |||
660 | 684 | | |
661 | 685 | | |
662 | 686 | | |
663 | | - | |
| 687 | + | |
664 | 688 | | |
665 | | - | |
| 689 | + | |
666 | 690 | | |
667 | 691 | | |
668 | 692 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12110 | 12110 | | |
12111 | 12111 | | |
12112 | 12112 | | |
| 12113 | + | |
| 12114 | + | |
| 12115 | + | |
| 12116 | + | |
| 12117 | + | |
| 12118 | + | |
| 12119 | + | |
| 12120 | + | |
| 12121 | + | |
| 12122 | + | |
| 12123 | + | |
| 12124 | + | |
| 12125 | + | |
| 12126 | + | |
| 12127 | + | |
| 12128 | + | |
| 12129 | + | |
| 12130 | + | |
| 12131 | + | |
| 12132 | + | |
| 12133 | + | |
| 12134 | + | |
| 12135 | + | |
| 12136 | + | |
| 12137 | + | |
| 12138 | + | |
| 12139 | + | |
| 12140 | + | |
| 12141 | + | |
| 12142 | + | |
| 12143 | + | |
| 12144 | + | |
| 12145 | + | |
| 12146 | + | |
| 12147 | + | |
| 12148 | + | |
| 12149 | + | |
| 12150 | + | |
| 12151 | + | |
| 12152 | + | |
| 12153 | + | |
| 12154 | + | |
| 12155 | + | |
| 12156 | + | |
| 12157 | + | |
| 12158 | + | |
| 12159 | + | |
| 12160 | + | |
| 12161 | + | |
| 12162 | + | |
| 12163 | + | |
| 12164 | + | |
| 12165 | + | |
| 12166 | + | |
| 12167 | + | |
| 12168 | + | |
| 12169 | + | |
| 12170 | + | |
| 12171 | + | |
| 12172 | + | |
| 12173 | + | |
| 12174 | + | |
| 12175 | + | |
| 12176 | + | |
12113 | 12177 | | |
12114 | 12178 | | |
12115 | 12179 | | |
| |||
0 commit comments