eland.Series.hist#

Series.hist(by=None, ax=None, grid=True, xlabelsize=None, xrot=None, ylabelsize=None, yrot=None, figsize=None, bins=10, **kwds)#

使用 matplotlib 绘制输入序列的直方图。

有关用法,请参阅pandas.Series.hist

注释#

源自 pandas.plotting._core.hist_frame 0.25.3

示例#

>>> import matplotlib.pyplot as plt
>>> df = ed.DataFrame('http://localhost:9200', 'flights')
>>> df[df.OriginWeather == 'Sunny']['FlightTimeMin'].hist(alpha=0.5, density=True) 
>>> df[df.OriginWeather != 'Sunny']['FlightTimeMin'].hist(alpha=0.5, density=True) 
>>> plt.show()