You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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):
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
The text was updated successfully, but these errors were encountered: