I am trying to build a statistical time series using Seaborn, but I cannot figure out how to figure it out. I tried using methods lmplotand tsplot, but obviously some key is missing.
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)
})
p.plot(x = "date", style = 'o--')
sns.lmplot(x = "date", y = "values", data = p)
sns.tsplot(time = "date", value = "values", data = p)
source
share