I am trying to use sns.histplot() instead of sns.distplot() since I got the following message in colab:
FutureWarning:
distplotis a deprecated function and will be removed in a future version. Please adapt your code to use eitherdisplot(a figure-level function with similar flexibility) orhistplot(an axes-level function for histograms).
Code:
import pandas as pd
import seaborn as sns
df = sns.load_dataset('tips')
sns.histplot(df['tip'], kde=True, kde_kws={'fill' : True});
I got an error when passing kde_kws parameters inside sns.histplot():
TypeError: init() got an unexpected keyword argument 'fill'