Olá, por algum motivo não consigo plotar o gráfico por ordem de value.counts.
Código
total_por_filme_outras_linguas = tmdb.query("original_language != 'en'").original_language.value_counts()
total_por_filme_outras_linguas
plt.figure(figsize=(5,10))
sns.catplot(x="original_language", kind="count", data = total_por_filme_outras_linguas, aspect=4, order = total_por_filme_outras_linguas.index)
ERRO
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-205-00af215e4f1f> in <module>
1 plt.figure(figsize=(5,10))
----> 2 sns.catplot(x="original_language", kind="count", data = total_por_filme_outras_linguas, aspect=4, order = total_por_filme_outras_linguas.index)
~\anaconda3\lib\site-packages\seaborn\categorical.py in catplot(x, y, hue, data, row, col, col_wrap, estimator, ci, n_boot, units, seed, order, hue_order, row_order, col_order, kind, height, aspect, orient, color, palette, legend, legend_out, sharex, sharey, margin_titles, facet_kws, **kwargs)
3724 # facets to ensure representation of all data in the final plot
3725 p = _CategoricalPlotter()
-> 3726 p.establish_variables(x_, y_, hue, data, orient, order, hue_order)
3727 order = p.group_names
3728 hue_order = p.hue_names
~\anaconda3\lib\site-packages\seaborn\categorical.py in establish_variables(self, x, y, hue, data, orient, order, hue_order, units)
150 if isinstance(var, str):
151 err = "Could not interpret input '{}'".format(var)
--> 152 raise ValueError(err)
153
154 # Figure out the plotting orientation
ValueError: Could not interpret input 'original_language'