Commit 6766d0b
committed
fix(frame): ensure proper name attribute when setting new column with scalar value
- Address issue where name attribute was lost when setting new column with scalar value and tuple key in MultiIndex DataFrame
- Implement check for tuple key and scalar value in MultiIndex DataFrame
- Create Series with proper name to ensure name attribute matches the key
- Update test case to assert Series name in scalar assignment with MultiIndex1 parent 3b36a2f commit 6766d0b
2 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4517 | 4517 | | |
4518 | 4518 | | |
4519 | 4519 | | |
4520 | | - | |
| 4520 | + | |
| 4521 | + | |
| 4522 | + | |
| 4523 | + | |
| 4524 | + | |
| 4525 | + | |
| 4526 | + | |
| 4527 | + | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
4521 | 4534 | | |
4522 | 4535 | | |
4523 | 4536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
657 | 659 | | |
658 | 660 | | |
659 | | - | |
| 661 | + | |
660 | 662 | | |
661 | 663 | | |
662 | 664 | | |
| |||
0 commit comments