vesper
vesper

Reputation: 21

Unexpected argument error in sns.kdeplot()

I'm working in a project in which I need to create a KDE plot. Here's my code:

sns.kdeplot(x = 'total_attempts', hue = 'status', fill = True, data = toplot)

Where toplot is a pd.DataFrame with two columns, total_attempts (integer) and status (boolean).

However, I receive the following error:

_bivariate_kdeplot() got multiple values for argument 'x'

This error normally comes when a both a positional and a keyword argument are specified in the calling of the function. But I don't see that this is the case in my code.

Any idea on why this is happening? Thanks.

Upvotes: 1

Views: 1495

Answers (1)

vesper
vesper

Reputation: 21

As Alex pointed out in the comments, upgrading seaborn >= 0.11 fixed the problem.

Upvotes: 1

Related Questions