---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-49-c3046e6c8d32> in <module>
----> 1 df['fire_numbers'].str.isdigit()
~/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py in __getattr__(self, name)
5268 or name in self._accessors
5269 ):
-> 5270 return object.__getattribute__(self, name)
5271 else:
5272 if self._info_axis._can_hold_identifiers_and_holds_name(name):
~/anaconda3/lib/python3.7/site-packages/pandas/core/accessor.py in __get__(self, obj, cls)
185 # we're accessing the attribute of the class, i.e., Dataset.geo
186 return self._accessor
--> 187 accessor_obj = self._accessor(obj)
188 # Replace the property with the accessor object. Inspired by:
189 # http://www.pydanny.com/cached-property.html
~/anaconda3/lib/python3.7/site-packages/pandas/core/strings.py in __init__(self, data)
2037
2038 def __init__(self, data):
-> 2039 self._inferred_dtype = self._validate(data)
2040 self._is_categorical = is_categorical_dtype(data)
2041 self._is_string = data.dtype.name == "string"
~/anaconda3/lib/python3.7/site-packages/pandas/core/strings.py in _validate(data)
2094
2095 if inferred_dtype not in allowed_types:
-> 2096 raise AttributeError("Can only use .str accessor with string values!")
2097 return inferred_dtype
2098
AttributeError: Can only use .str accessor with string values!