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

Error running your script out of the box #1

Open
NicolasMICAUX opened this issue Oct 3, 2024 · 0 comments
Open

Error running your script out of the box #1

NicolasMICAUX opened this issue Oct 3, 2024 · 0 comments

Comments

@NicolasMICAUX
Copy link

$ whatsapp-chat-analyze messages.txt 
Plotting "message_count"
Traceback (most recent call last):
  File "whatsapp-chat-analyze", line 8, in <module>
    sys.exit(main())
  File "whatsapp_chat_analyze/cli.py", line 389, in main
    plot_count_plots(
  File "whatsapp_chat_analyze/cli.py", line 117, in plot_count_plots
    df["Author"].value_counts().plot(kind="bar")
  File "pandas/plotting/_core.py", line 1030, in __call__
    return plot_backend.plot(data, kind=kind, **kwargs)
  File "pandas/plotting/_matplotlib/__init__.py", line 71, in plot
    plot_obj.generate()
  File "pandas/plotting/_matplotlib/core.py", line 508, in generate
    self._post_plot_logic(ax, self.data)
  File "pandas/plotting/_matplotlib/core.py", line 1972, in _post_plot_logic
    s_edge = self.ax_pos[0] - 0.25 + self.lim_offset
IndexError: index 0 is out of bounds for axis 0 with size 0
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