Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
catplot 函数有一个名为 kind 的选项。它允许我指定“条”、“点”等。我正在寻找线图。我正在使用 catplot 并排显示两个类别,使用相同的时间尺度,绘制两种不同产品的销售额。目标是同时展示这两种趋势。
catplot,顾名思义,用于分类数据(即在 x 轴上显示 2 个或更多类别的数据),而不是连续数据(例如您的情况下的时间序列)。
catplot
我想你正在寻找sns.relplot()kind='line'
sns.relplot()
kind='line'