Commit c8c90fe
REF: Clean up some iterator usages (pandas-dev#58267)
* Use better data structures
* Use generator and set
* Move sorted to exception block, use set instead of list
* Another iterator, use iter
* another set
* Dont use iterator protocol1 parent 3239570 commit c8c90fe
File tree
5 files changed
+31
-33
lines changed- pandas
- _libs/tslibs
- core
- internals
- tools
5 files changed
+31
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
| 222 | + | |
224 | 223 | | |
225 | 224 | | |
226 | 225 | | |
| |||
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
427 | 425 | | |
428 | 426 | | |
429 | 427 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2301 | 2301 | | |
2302 | 2302 | | |
2303 | 2303 | | |
2304 | | - | |
2305 | | - | |
| 2304 | + | |
| 2305 | + | |
2306 | 2306 | | |
2307 | 2307 | | |
2308 | 2308 | | |
| |||
3705 | 3705 | | |
3706 | 3706 | | |
3707 | 3707 | | |
3708 | | - | |
| 3708 | + | |
3709 | 3709 | | |
3710 | 3710 | | |
3711 | 3711 | | |
| |||
3723 | 3723 | | |
3724 | 3724 | | |
3725 | 3725 | | |
3726 | | - | |
3727 | | - | |
| 3726 | + | |
| 3727 | + | |
3728 | 3728 | | |
3729 | 3729 | | |
3730 | | - | |
| 3730 | + | |
3731 | 3731 | | |
3732 | 3732 | | |
3733 | 3733 | | |
| |||
3736 | 3736 | | |
3737 | 3737 | | |
3738 | 3738 | | |
3739 | | - | |
| 3739 | + | |
3740 | 3740 | | |
3741 | 3741 | | |
3742 | 3742 | | |
| |||
3748 | 3748 | | |
3749 | 3749 | | |
3750 | 3750 | | |
3751 | | - | |
3752 | | - | |
| 3751 | + | |
3753 | 3752 | | |
3754 | | - | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
3755 | 3756 | | |
3756 | 3757 | | |
3757 | 3758 | | |
| |||
5882 | 5883 | | |
5883 | 5884 | | |
5884 | 5885 | | |
5885 | | - | |
| 5886 | + | |
5886 | 5887 | | |
5887 | 5888 | | |
5888 | 5889 | | |
| |||
5909 | 5910 | | |
5910 | 5911 | | |
5911 | 5912 | | |
5912 | | - | |
| 5913 | + | |
5913 | 5914 | | |
5914 | 5915 | | |
5915 | 5916 | | |
| |||
5926 | 5927 | | |
5927 | 5928 | | |
5928 | 5929 | | |
5929 | | - | |
| 5930 | + | |
5930 | 5931 | | |
5931 | 5932 | | |
5932 | 5933 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2045 | 2045 | | |
2046 | 2046 | | |
2047 | 2047 | | |
2048 | | - | |
| 2048 | + | |
2049 | 2049 | | |
2050 | 2050 | | |
2051 | 2051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
| 570 | + | |
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
600 | | - | |
| 599 | + | |
601 | 600 | | |
602 | 601 | | |
603 | 602 | | |
604 | 603 | | |
605 | 604 | | |
606 | 605 | | |
607 | | - | |
| 606 | + | |
608 | 607 | | |
609 | | - | |
| 608 | + | |
610 | 609 | | |
611 | | - | |
| 610 | + | |
612 | 611 | | |
613 | 612 | | |
614 | 613 | | |
615 | 614 | | |
616 | | - | |
| 615 | + | |
617 | 616 | | |
618 | 617 | | |
619 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | | - | |
| 1127 | + | |
1128 | 1128 | | |
1129 | | - | |
| 1129 | + | |
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | | - | |
| 1136 | + | |
1137 | 1137 | | |
1138 | | - | |
| 1138 | + | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
| |||
0 commit comments