Commit 654b11e
PERF: RangeIndex.append returns a RangeIndex when possible (pandas-dev#57467)
* PERF: RangeIndex.append returns a RangeIndex when possible
* add correct issue number
* add correct issue number
* Only if int
* Guard on integer dtype kind
* Add test for return Index case1 parent b3dd3d5 commit 654b11e
File tree
3 files changed
+19
-1
lines changed- doc/source/whatsnew
- pandas
- core/indexes
- tests/indexes/ranges
3 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
992 | | - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
993 | 996 | | |
994 | 997 | | |
995 | 998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
611 | 625 | | |
612 | 626 | | |
613 | 627 | | |
| |||
0 commit comments