Open Opostol opened 1 month ago
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[X] I have confirmed this bug exists on the main branch of pandas.
import pandas as pd df = pd.json_normalize(data={'meta1':{'meta2':'meta_val'}, 'record1':{'record2':[{'rec1':'rec_val1'},{'rec1':'rec_val2'}]}}, meta=[['meta1','meta2']], record_path=['record1','record2'])
fact behaviour: KeyError: "Key 'meta2' not found.
KeyError: "Key 'meta2' not found.
expected df = rec1 meta1.meta2 0 rec_val1 meta_val 1 rec_val2 meta_val
issue raised to describe pull request https://github.com/pandas-dev/pandas/pull/59225
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[X] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
fact behaviour:
KeyError: "Key 'meta2' not found.
Expected Behavior
expected df = rec1 meta1.meta2 0 rec_val1 meta_val 1 rec_val2 meta_val
Installed Versions