Mar-10-2017, 10:01 PM
Hi All,
I count the number of grades appeared in the dataset and trying to plot it as histogram.
it works ,but couldn't get the grade name as x-axis.
data on the count dataframe looks like
Vermin V
V1 1
V10 1
V11 1
V2 1
V3 2
V4 2
V5 3
V6 6
V7 4
V8 2
V9 1
dtype: int64
i tried the below code
>>> plt.hist(vermin_v)
(array([ 5., 0., 3., 0., 1., 0., 1., 0., 0., 1.]), array([ 1. , 1.5, 2. , ..., 5. , 5.5, 6. ]), <a list of 10 Patch objects>)
i am getting a histogram ,but the numeric values appear on x-axis instead of vermin grades.
how can i get the vermin grades v1,v10etc on the x axis?
Thanks
vvv
I count the number of grades appeared in the dataset and trying to plot it as histogram.
it works ,but couldn't get the grade name as x-axis.
data on the count dataframe looks like
Vermin V
V1 1
V10 1
V11 1
V2 1
V3 2
V4 2
V5 3
V6 6
V7 4
V8 2
V9 1
dtype: int64
i tried the below code
>>> plt.hist(vermin_v)
(array([ 5., 0., 3., 0., 1., 0., 1., 0., 0., 1.]), array([ 1. , 1.5, 2. , ..., 5. , 5.5, 6. ]), <a list of 10 Patch objects>)
i am getting a histogram ,but the numeric values appear on x-axis instead of vermin grades.
how can i get the vermin grades v1,v10etc on the x axis?
Thanks
vvv