Distplot is a deprecated function and will be removed in a future version. So I am trying to figure out how histplot works. How can I change color (I need 'ultra' be one color and 'smart' another)? Whenever I try to use hue='species' I get this error:
'The following variable cannot be assigned with wide-form data:
hue'
for tariff in ['ultra', 'smart']:
sns.histplot(df.query('tariff == @tariff')['gb_total'], kde=False)
_ = plt.legend(['ultra', 'smart'])