You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the notebook the following error appears for the example for Puebla
AttributeError Traceback (most recent call last)
----> 3 # Read file using pandas
4
5 stations = read_usgs_json(json_path)
6
~/earthquake-scenarios/src/usgs_stations_json_csv.py in ?(json_path)
46
47 # Iterate over different columns. Each colum can be a component
48 data = []
49 pgas = []
---> 50 for index, chan in rec_sation.iteritems():
51 try:
52 if chan["name"].endswith("Z") or chan["name"].endswith("U"):
53 continue
~/openquake/lib/python3.9/site-packages/pandas/core/generic.py in ?(self, name)
5985 and name not in self._accessors
5986 and self._info_axis._can_hold_identifiers_and_holds_name(name)
5987 ):
5988 return self[name]
-> 5989 return object.__getattribute__(self, name)
AttributeError: 'Series' object has no attribute 'iteritems'
The text was updated successfully, but these errors were encountered:
When running the notebook the following error appears for the example for Puebla
The text was updated successfully, but these errors were encountered: