Closed
Description
Code Sample, a copy-pastable example if possible
df = pd.read_json('filename')
json_normalize(df, record_path = ['data'], \
meta = ['id', 'desc'], errors = 'ignore')
Problem description
suppose json file, in some line, doesn't have anything to be normalized on data but does have id and desc information, no-empty. The function should be able to normalize that to empty columns while keep id and desc in the final result.
I am not sure whether this mean "ignore" but I don't think excluding the lines like that from the results is a good choice. I would recommend to supply with empty columns is not all columns are missing, both for record_path and meta.