python - Pandas series manipulation - change x and y -
i have pandas.core.series.series object x outputs following when print x:
2 681 1 575 3 573 4 381 0 340 how can change x x2 print x2 outputs:
681 2 575 1 573 3 381 4 340 0 i want otherwise when try plot histogram (x.plot.hist()), don't result wanted.
do want bar chart?
s.plot.bar() pd.series(s.index, index=s.values, name='a').plot.bar() histogram makes no sense way graphically represent aggregated data. series length 5... nothing aggregrate.


Comments
Post a Comment