Here in code below we have filtered our data for some states as visible in legend. But if i use command plt.legend( ) Its showing all states in the legend however we have already modified our dataframe. Why is it happening so?
fig = plt.gcf();
fig.set_size_inches(15, 6);
sns.lineplot('date', 'confirmed', hue="state", data=df_,
palette='Reds', hue_order = ['wb', 'gj', 'ka', 'dl', 'tn', 'mh']);