【发布时间】:2019-02-11 10:23:02
【问题描述】:
pandas.Series.plot.hist 或 pandas.Series.plot 中没有范围参数。 但是下面的代码有效。它是如何工作的?
#wnba is Dataframe, so wnba['PTS'] is series.
wnba['PTS'].plot.hist(range = (1,600), bins = 3)
【问题讨论】:
-
@Adelin 这就是为什么我还链接了 Series.plot。 Series.plot 中也没有范围。
-
文档状态为
**kwds : keywords, Options to pass to matplotlib plotting method。意思是,如果这个调用matplotlib.pyplot.hist,range将被传递给它。
标签: python pandas matplotlib histogram