Closed juanshishido closed 9 years ago
Currently, .plot() is called on a pd.Series resulting from .value_counts().
.plot()
pd.Series
.value_counts()
(tdf.ethnicity_.value_counts().sort_index() /\ tdf.ethnicity_.value_counts().sort_index().sum()).plot(alpha=0.75, rot=90, figsize=(8, 6))
The issue is that, if the indices aren't the same across clusters, the y-values will be plotted in an incorrect x-axis position.
Try @matarhaller's histogram suggestion.
Currently,
.plot()
is called on apd.Series
resulting from.value_counts()
.The issue is that, if the indices aren't the same across clusters, the y-values will be plotted in an incorrect x-axis position.