numpy as np
import pandas as pd
from pandas import Series,DataFrame
import matplotlib.pyplot as plt
直方图...# randn正态分布
s = Series(np.random.randn(1000))
# 直方图和柱状图不同(是一个取值范围)
plt.hist(s, rwidth=0.9)
(array([...# 理解取值范围分布直方图
a = np.arange(10)
a
array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
# 0-2之间有一个,依次如此
plt.hist(a, rwidth...# 理解Series的数据,直方图tuple数据类型
re = plt.hist(s, rwidth=0.9)
len(re)
3
?...密度图
s.plot(kind='kde')
?