I am trying to plot a histogram using seaborn. When I try to set kde=True this error is returned:
ValueError: Multi-dimensional indexing (e.g. obj[:, None]
) is no longer supported. Convert to a numpy array before indexing instead.
sns.histplot(data=df, x='age', kde=True);
How can I solve this?