超过100万个数据点的线图

时间:2018-08-07 10:48:28

标签: python-3.x matplotlib line-plot

我很难绘制所需的线图。我有一个包含23列的数据集,其中21列是从0-2支付的%age金额,步长为0.1,该特定客户的用户ID的列为1列,而他所属的客户群中的最后一列。我想为我的数据集中的所有客户绘制付款模式,其x轴上的付款方式为0-2,步长为0.1,y轴上的付款百分比百分比值,并根据该细分为客户的每一行着色他属于。我的数据集如下所示:

Id        paid_0.0 paid_0.1paid_0.2paid_0.3paid_0.4 Segment
AC005839    0.30    0.38    0.45    0.53    0.61    Best
AC005842    0.30    0.30    0.52    0.52    0.52    Best
AC005843    0.30    0.38    0.45    0.53    0.61    Best
AC005851    0.24    0.31    0.35    0.35    0.51    Medium
AC005852    0.30    0.38    0.45    0.53    0.61    Best
AC005853    0.30    0.38    0.45    0.53    0.61    Best
AC005856    0.30    0.38    0.45    0.53    0.61    Best
AC005858    0.30    0.38    0.45    0.53    0.54    Best
AC005859    0.33    0.43    0.54    0.65    0.65    Best

我正在尝试生成如下图: enter image description here

0 个答案:

没有答案