I put the following code :
ratio_result_selected_country.loc['3/17/20':].plot.line(figsize=(17,7), grid = True)
is it possible to add label directly like this :
ax = ratio_result_selected_country.loc['3/17/20':].plot(figsize=(17,7), grid = True)
for line , name in zip (ax.lines ,ratio_result_selected_country.columns ):
y = line.get_ydata()[-1]
ax.annotate(name,xy=(1,y),xytext=(6,0),color=line.get_color(),
xycoords = ax.get_yaxis_transform(),textcoords ="offset points",
size = 14, va="center"
)
plt.show()