Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting AttributeError: module 'pandas' has no attribute 'json_normalize' while calling method "Access OutbreakLocation data"

Tags:

python

I am exploring the Jupiter notebook for Python. While calling this method "Access OutbreakLocation data" I get this exception in Python 3.6: getting AttributeError: module 'pandas' has no attribute 'json_normalize'

Any ideas how can we fix this issue?

like image 497
user2710603 Avatar asked Apr 21 '20 04:04

user2710603


2 Answers

Make sure to update to Pandas 1.0.3. Pandas prior to version 1 doesn't have json_normalize.

like image 106
Robert Young Avatar answered Sep 22 '22 13:09

Robert Young


I too had this error, the solution is load pandas of the following way:

from pandas.io.json import json_normalize

This is due to version change of the pandas library.

like image 26
Joselin Intriago Avatar answered Sep 18 '22 13:09

Joselin Intriago