Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

error with seaborn scatterplot, too many positional arguments

$
0
0
plt.figure(dpi = 140)sns.kdeplot(churn_age, fill = True)sns.scatterplot( [mean], [0], color='red', label='mean')sns.scatterplot( [median], [0], color='green', label='median')sns.lineplot( stdev, [0,0], color='black', label='standard deviation')plt.xlabel("Age")plt.ylabel('Density')plt.ylim(-0.002, 0.025)plt.title("KDE Plot with descriptives : Age of people who churned")plt.show()

This results in the error:

TypeError: scatterplot() takes from 0 to 1 positional arguments but 2 were given

i want to remove this error.


Viewing all articles
Browse latest Browse all 23131

Trending Articles