Getting Attribute Error: Module 'Pandas' Has No Attribute 'Json_Normalize'
I Was Trying to Use Json_Normalize Function to Flatten the Json Data. While Calling the Function I Am Getting This Exception in Python; Attributeerror: Module...
I was trying to use json_normalize function to flatten the JSON data. While calling the function I am getting this exception in Python;
AttributeError: module 'pandas' has no attribute 'json_normalize'
I'm using Python 3.8-Azure ML and used this;
from pandas.io.json import json_normalize
How can we import this?
2 Answers
Try to
from pandas import json_normalize
json_normalize is coming from pandas directly
So what you have to import is:
from pandas import json_normalize