NoneType error during json_normalize due to schema change · Issue #30148 · pandas-dev/pandas (original) (raw)

@bolkedebruin

Code sample

meta_df = json_normalize(json_struct, record_path='my_data')

Problem description

Normalizing a json with an absent field at a certain point in time due to a schema change(s) results in a NoneType error

Expected Output

Continue normalization

Output of pd.show_versions()

INSTALLED VERSIONS

commit : 37b4b33
python : 3.7.5.final.0
python-bits : 64
OS : Darwin
OS-release : 19.0.0
machine : x86_64
processor : i386
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8

pandas : 0.26.0.dev0+1247.g37b4b3307.dirty
numpy : 1.17.4
pytz : 2019.3
dateutil : 2.8.1
pip : 19.2.3
setuptools : 41.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None