0

我有一个大型数据集,我从中选择要显示为网格热图、线图和散点图的数据。(事实上​​,所有数据都存储在一个大型数据框中,索引为去年的日期,列是 3 维的多索引)。我直接在 spyder 或 jupyter notebook 中执行脚本。我希望将所有图表组织在仪表板中,并理想地进行交互,以便我可以从那里选择数据框的切片。有许多像 Dash 这样的应用程序,但最好的方法是什么?

热图:

f, ax = plt.subplots(figsize=(9, 6))
sns.heatmap(df, annot=True, ax=ax)

分散:

ax = df.plot.scatter(x=scatter_x,y=scatter_y,colormap='coolwarm', figsize=(15, 10))

线:

df.plot.line(subplots=False, linestyle='-',cmap='coolwarm', figsize=(15, 7))
4

0 回答 0