我试图用Seaborn绘制统计时间序列,但我似乎无法弄明白。我尝试过同时使用tsplot
和import pandas as pd
import seaborn as sns
import matplotlib.pyplot as pylab
p = pd.DataFrame({
"date": pd.date_range('1/1/2015', periods = 12),
"values":range(1,13)
})
# Regular Matplotlib (via pandas) works
p.plot(x = "date", style = 'o--')
# Can't get lmplot to work
sns.lmplot(x = "date", y = "values", data = p)
# Can't get tsplot to work either
sns.tsplot(time = "date", value = "values", data = p)
方法,但显然缺少一些关键功能。
$var = "[Item 1],[Item 2],[Item, 3]";
答案 0 :(得分:2)
很抱歉,我不能将其添加为评论,因为我评价不够高。
我最近一直在争夺时间序列,以下SO帖子与你的完全一致,关于置信区间的问题也是如此: