ImportError: cannot import name 'json_normalize' from 'pandas.io.json' (D:\anaconda3\envs\SD\Lib\site-packages\pandas\io\json__init__.py)
I use "pandas 2.1.1" in my project, and when I tried to from nsd_access import NSDAccess, I found that in the latest version, pandas used "pandas.json_normalize" instead of "pandas.io.json.json_normalize"
To fix this issue, replace from pandas.io.json import json_normalize with from pandas import json_normalize in nsda.py
I use "pandas 2.1.1" in my project, and when I tried to
from nsd_access import NSDAccess
, I found that in the latest version, pandas used "pandas.json_normalize" instead of "pandas.io.json.json_normalize"To fix this issue, replace
from pandas.io.json import json_normalize
withfrom pandas import json_normalize
innsda.py