Skip to content

Commit 06e6954

Browse files
committed
BUG: fix for pd.json_normalize on non string keys
1 parent 00a7c41 commit 06e6954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/json/_normalize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def _pull_records(js: dict[str, Any], spec: list | str) -> list:
552552
lengths = []
553553

554554
meta_vals: DefaultDict = defaultdict(list)
555-
meta_keys = [sep.join(val) for val in _meta]
555+
meta_keys = [sep.join(map(str, val)) for val in _meta]
556556

557557
def _recursive_extract(data, path, seen_meta, level: int = 0) -> None:
558558
if isinstance(data, dict):

0 commit comments

Comments
 (0)