新的使用seaborn,并希望指定一个简单而漂亮(为什么我使用seaborn)线图 .

特别是我正在使用Seaborn,因为我的理解是你可以为seaborn col =参数提供一个列名,它将为该列中的每个唯一值创建一个图表 .

seaborn documentation

month_name包含月份名称,例如Jan,Feb,Mar,但是我收到错误:

"Could not convert OctoberJuneJulyAugustSeptember to numeric"

我的代码为month_name的每个出现绘制图表,即Jan,Feb等

其中person_name在X轴上,而Revenue在Y轴上获得 . 因此,由于有几个月我希望下面生成一个12图形网格(6x6) .

sns.lmplot("person_name", "revenue", df, col="month_date", palette="Set1", fit_reg=False);

Update

现在的错误是: ValueError: First argument must be a sequence 我从左到右依次得到5张空白图,其中没有任何内容 . 我假设第一个Argument指的是X变量 - > "person name"?但是如何将列(person_name)变成序列?

enter image description here