Seaborn tsplot - ValueError:索引包含重复的条目,无法重塑tsplot

时间:2016-12-27 04:44:05

标签: python pandas matplotlib seaborn

enter image description here

我正在尝试使用seaborn的tsplot(sns.tsplot),因为我想显示5年内不同月份(以及平均值)的系列值的变化。 我附上了我的数据帧图像。这是我正在使用的代码:

import pandas as pd
import numpy as np 
import seaborn as sns
import matplotlib.pyplot as plt

sns.tsplot(data = df_monthly, time = 'month', value = 'pm_local',      unit="dayofweek");

plt.show()

我无法理解为什么我收到以下错误消息,因为索引从0开始:

  

ValueError:索引包含重复的条目,无法重塑

为什么会出现这种情况以及如何让tsplot工作的任何建议?

0 个答案:

没有答案
相关问题