Commit 4fd3435
committed
BUG: json_normalize handles non‑string keys in meta with record_path (GH#62264)
Coerce meta path elements to str when constructing meta_keys to avoid TypeError during sep.join and align with nested_to_record behavior.
Add regression test in TestJSONNormalize to verify integer meta keys with record_path produce string-labeled columns and correct repetition.
Closes GH#62264.1 parent 83c9e4a commit 4fd3435
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
| 543 | + | |
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
572 | 589 | | |
573 | 590 | | |
574 | 591 | | |
| |||
0 commit comments