ObinnaIheanachor / Whatsapp-Chat-project

Resagratia Whatsapp group chat analysis
MIT License
10 stars 4 forks source link

Compilation error: 'Can only use .str accessor with string values!' #3

Open amadsalmon opened 4 years ago

amadsalmon commented 4 years ago

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.

ObinnaIheanachor commented 4 years ago

Okay, great no problem.

Thank you.