length of df before:0
Traceback (most recent call last):
File "script.py", line 36, in
df = df[~df["Name"].str.contains("undefined")]
File "/usr/local/lib/python3.8/site-packages/pandas/core/generic.py", line 5135, in getattr
return object.getattribute(self, name)
File "/usr/local/lib/python3.8/site-packages/pandas/core/accessor.py", line 187, in get
accessor_obj = self._accessor(obj)
File "/usr/local/lib/python3.8/site-packages/pandas/core/strings.py", line 2100, in init
self._inferred_dtype = self._validate(data)
File "/usr/local/lib/python3.8/site-packages/pandas/core/strings.py", line 2157, in _validate
raise AttributeError("Can only use .str accessor with string values!")
AttributeError: Can only use .str accessor with string values!
I will try to fix the bug and come back to you with a pull request.
Error message:
length of df before:0 Traceback (most recent call last): File "script.py", line 36, in
df = df[~df["Name"].str.contains("undefined")]
File "/usr/local/lib/python3.8/site-packages/pandas/core/generic.py", line 5135, in getattr
return object.getattribute(self, name)
File "/usr/local/lib/python3.8/site-packages/pandas/core/accessor.py", line 187, in get
accessor_obj = self._accessor(obj)
File "/usr/local/lib/python3.8/site-packages/pandas/core/strings.py", line 2100, in init
self._inferred_dtype = self._validate(data)
File "/usr/local/lib/python3.8/site-packages/pandas/core/strings.py", line 2157, in _validate
raise AttributeError("Can only use .str accessor with string values!")
AttributeError: Can only use .str accessor with string values!
I will try to fix the bug and come back to you with a pull request.