python - How to plot a histogram? -
i have problems plotting histogram.
my dataframe looks this:
2012-06-20 23:00:00 600 2014-07-01 03:26:00 1,000 2013-09-30 04:00:00 1,000 2013-09-17 03:59:00 400 2015-02-12 18:41:20 100 2015-03-12 07:53:07 100 2015-03-01 04:59:00 200 2015-02-16 22:22:31 1,000 2015-03-01 03:00:00 1,000 2015-01-12 06:00:00 10 2015-03-03 04:59:00 100 2014-06-21 18:00:38 500 when try plot histogram, apply:
df['cars'].hist(bins=50) however, returns
out: matplotlib.axes._subplots.axessubplot @ 0x19801be10 without plot?
thanks help!
solved: %matplotlib inline solved problem (ipython notebook)
but looks this:

df.describe() returns
location cars count 65,600 65,600 mean 3,373,467 16,000 std 5,516,816 120,000 min 2,351,479 0 25% 2,397,816 1,400 50% 2,452,537 4,500 75% 2,485,749 11,200 max 99,999,999 18,000,000
solved #2: checked db , indeed, there's high maximum value causes plot that. thank support!
Comments
Post a Comment