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

Maybe update plot to new library versions? #3

Open
bonelifer opened this issue Jun 14, 2022 · 0 comments
Open

Maybe update plot to new library versions? #3

bonelifer opened this issue Jun 14, 2022 · 0 comments

Comments

@bonelifer
Copy link

bonelifer commented Jun 14, 2022

Describe the bug
The main program works great for my 44,000ish scrobbles. Unfortunately my libs are too new for plot.py to work. Still cool to be able to grep and find out basic info.

Desktop (please complete the following information):

  • OS: Xubuntu 20.04.4

Error on running it
Traceback (most recent call last): File "plot.py", line 53, in <module> plot = get_plot(arranged_dataframe) File "plot.py", line 39, in get_plot dataframe.plot(x="artist", y="scrobbles", kind="bar") File "/home/william/.local/lib/python3.8/site-packages/pandas/plotting/_core.py", line 794, in __call__ return plot_backend.plot(data, kind=kind, **kwargs) File "/home/william/.local/lib/python3.8/site-packages/pandas/plotting/_matplotlib/__init__.py", line 62, in plot plot_obj.generate() File "/home/william/.local/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py", line 279, in generate self._compute_plot_data() File "/home/william/.local/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py", line 403, in _compute_plot_data numeric_data = data.select_dtypes( File "/home/william/.local/lib/python3.8/site-packages/pandas/core/frame.py", line 3442, in select_dtypes include_these = Series(not bool(include), index=self.columns) File "/home/william/.local/lib/python3.8/site-packages/pandas/core/series.py", line 314, in __init__ data = sanitize_array(data, index, dtype, copy, raise_cast_failure=True) File "/home/william/.local/lib/python3.8/site-packages/pandas/core/internals/construction.py", line 712, in sanitize_array subarr = construct_1d_arraylike_from_scalar(value, len(index), dtype) File "/home/william/.local/lib/python3.8/site-packages/pandas/core/dtypes/cast.py", line 1233, in construct_1d_arraylike_from_scalar subarr = np.empty(length, dtype=dtype) TypeError: Cannot interpret '<attribute 'dtype' of 'numpy.generic' objects>' as a data type

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