Я хотел бы добавить метки подгруппы (из легенды) на ось следующего графика. Я добавил желаемый результат ниже. Как я могу это сделать? Я не уверен, что с Google ... Спасибо
График: общая сумма - количество кликов по номеру недели / году
sns.set(style="ticks")
pd.pivot_table(df,index=['week_number'],columns=['month','year'],values=['clicks'],aggfunc=np.sum).plot(kind=('line'),legend=True,title=('Clicks by Week/ Month over Time'),figsize=(15, 8))
plt.legend()
plt.ylabel('Total Clicks')
plt.xlabel('Week Number, Month')
plt.show();

РЕДАКТИРОВАТЬ: добавлены данные
event_id event_date week_number holiday month day year pub_organization_id clicks sales conversion_rate sale_amount_usd pub_commission_usd
0 11 1/1/13 1 New Year's Day January 1 2013 299 146 1 0.006849 18.00 0.18
1 241 1/1/13 1 New Year's Day January 1 2013 243 2 1 0.500000 19.90 0.20
2 93 1/1/13 1 New Year's Day January 1 2013 192 22 1 0.045455 19.95 0.50
3 51 1/1/13 1 New Year's Day January 1 2013 176 4 1 0.250000 27.00 0.27
4 28 1/1/13 1 New Year's Day January 1 2013 444 4 1 0.250000 39.95 0.40