有一只熊猫dataframe
像下面这样
Date,Id_x,EC Id,ActDlS,pmAcUlPr
4/27/2020,1139,1139,1131,6
4/28/2020,1139,1139,1131,6
4/29/2020,1139,1139,1131,6
4/30/2020,1139,1139,1131,6
5/1/2020,1140,1140,1132,6
需要使用seaborn
为下面的Date
列创建所有列的图表。实际数据集中可能有100个这样的列
我试图使用Seaborn doc中的示例
import seaborn as sns; sns.set(style="ticks", color_codes=True)
tips = sns.load_dataset("tips")
g = sns.FacetGrid(tips, col="time", row="smoker")
需要帮助以sns.FacetGrid
中可以接受的格式获取数据集
您不能在本例中使用FacetGrid:您没有在
Date
中为每个值绘制一个图形。相反,您需要使用plt.subplot
它将如下所示:
相关问题 更多 >
编程相关推荐