【发布时间】:2023-01-03 06:39:52
【问题描述】:
我正在尝试使用pandas_bokeh创建一个带有熊猫数据框的折线图,我称之为bucketed_df
import pandas_bokeh
pandas_bokeh.output_notebook()
bucketed_df.plot_bokeh(kind='line')
出于某种原因我得到了错误
AttributeError: unexpected attribute 'plot_width' to figure, similar attributes are outer_width, width or min_width
我不确定这是什么或如何修复它。我正在使用 python 3.9 和 jupyter notebooks
我在其上方的单元格中有一个 matplotlib 折线图。我认为这可能存在一些问题。
此外,如果有人知道任何更好的交互式图表,我愿意切换到不同的库。
【问题讨论】:
-
你能分享一个 bucketed_df 的样本吗? (只要类型和示例相似,填充假数据就可以)
-
它的索引是一个日期时间对象,并且有一个名为 id 的列,其中仅包含整数。
标签: pandas dataframe graphing pandas-bokeh