Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute 'msg' is missing #20

Closed
adaxiik opened this issue May 5, 2021 · 0 comments
Closed

Attribute 'msg' is missing #20

adaxiik opened this issue May 5, 2021 · 0 comments

Comments

@adaxiik
Copy link

adaxiik commented May 5, 2021

Error while generating report :

Parsing data from C:/Users/xxx/Desktop/messages
Traceback (most recent call last):
File "generate_report.py", line 45, in
how.add_trace(cs.msg_types(show=False), row=1, col=1)
File "C:\Users\xxx\Desktop\Facebook-Messenger-Statistics-master\chatstat.py", line 15, in wrapper
fig, graph = graph_func(*args, **kwargs)
File "C:\Users\xxx\Desktop\Facebook-Messenger-Statistics-master\chatstat.py", line 149, in msg_types
type_dict = {"type": {"stickers": chat.sticker.count(), "photos": chat.photos.count(), "videos": chat.videos.count(), "links": chat[[("http" in str(msg)) for msg in chat.msg]].msg.count()}}
File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\generic.py", line 5465, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'msg'

@adaxiik adaxiik closed this as completed May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant