---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-19-5e3b9199463a> in <module>()
----> 1 sns.barplot(x=c.index, y=c.values)
/usr/local/lib/python3.7/dist-packages/seaborn/_decorators.py in inner_f(*args, **kwargs)
44 )
45 kwargs.update({k: arg for k, arg in zip(sig.parameters, args)})
---> 46 return f(**kwargs)
47 return inner_f
48
/usr/local/lib/python3.7/dist-packages/seaborn/categorical.py in barplot(x, y, hue, data, order, hue_order, estimator, ci, n_boot, units, seed, orient, color, palette, saturation, errcolor, errwidth, capsize, dodge, ax, **kwargs)
3183 estimator, ci, n_boot, units, seed,
3184 orient, color, palette, saturation,
-> 3185 errcolor, errwidth, capsize, dodge)
3186
3187 if ax is None:
/usr/local/lib/python3.7/dist-packages/seaborn/categorical.py in __init__(self, x, y, hue, data, order, hue_order, estimator, ci, n_boot, units, seed, orient, color, palette, saturation, errcolor, errwidth, capsize, dodge)
1583 """Initialize the plotter."""
1584 self.establish_variables(x, y, hue, data, orient,
-> 1585 order, hue_order, units)
1586 self.establish_colors(color, palette, saturation)
1587 self.estimate_statistic(estimator, ci, n_boot, seed)
/usr/local/lib/python3.7/dist-packages/seaborn/categorical.py in establish_variables(self, x, y, hue, data, orient, order, hue_order, units)
205 # Group the numeric data
206 plot_data, value_label = self._group_longform(vals, groups,
--> 207 group_names)
208
209 # Now handle the hue levels for nested ordering
/usr/local/lib/python3.7/dist-packages/seaborn/categorical.py in _group_longform(self, vals, grouper, order)
248 else:
249 index = None
--> 250 vals = pd.Series(vals, index=index)
251
252 # Group the val data
/usr/local/lib/python3.7/dist-packages/pandas/core/series.py in __init__(self, data, index, dtype, name, copy, fastpath)
437 data = data.copy()
438 else:
--> 439 data = sanitize_array(data, index, dtype, copy)
440
441 manager = get_option("mode.data_manager")
/usr/local/lib/python3.7/dist-packages/pandas/core/construction.py in sanitize_array(data, index, dtype, copy, raise_cast_failure, allow_2d)
574 subarr = maybe_infer_to_datetimelike(subarr)
575
--> 576 subarr = _sanitize_ndim(subarr, data, dtype, index, allow_2d=allow_2d)
577
578 if isinstance(subarr, np.ndarray):
/usr/local/lib/python3.7/dist-packages/pandas/core/construction.py in _sanitize_ndim(result, data, dtype, index, allow_2d)
625 if allow_2d:
626 return result
--> 627 raise ValueError("Data must be 1-dimensional")
628 if is_object_dtype(dtype) and isinstance(dtype, ExtensionDtype):
629 # i.e. PandasDtype("O")
ValueError: Data must be 1-dimensional