Closed leifulstrup closed 4 years ago
Same issue as before. I think you need to upgrade. pip install -U bar_chart_race
Upgrade to V0.1.0 solved the read problem but got this error now:
TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'
bcr.bar_chart_race(df_baseball, period_length=1000, fixed_max=True, fixed_order=True, n_bars=10, figsize=(5, 3), period_fmt='Season {x:,.0f}', title='Top 10 Home Run Hitters by Season Played')
TypeError Traceback (most recent call last) ~/opt/anaconda3/lib/python3.7/site-packages/pandas/core/series.py in _try_kind_sort(arr) 2947 # if kind==mergesort, it can fail for object dtype -> 2948 return arr.argsort(kind=kind) 2949 except TypeError:
TypeError: '<' not supported between instances of 'numpy.ndarray' and 'str'
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
@leifulstrup The baseball dataset will not work directly. It must be "prepared" with `prepared_long_data" first.
df_baseball = bcr.load_dataset('baseball')
ValueError Traceback (most recent call last)