Back

width parameter not working in Seaborn

Created 2 years ago
204 Views
1 Comments
Dunga
@Dunga
Dunga
@DungaProfile is locked. Login

I imported seaborn library to plot a categorical variable using barplot() method. I used 'width' argument to set the width of the each bar. The below is the code snippet.

sns.barplot(data=data,x='marital',y='age',hue='y',palette='dark:salmon',width=1)

It's throwing the following error: bar() got multiple values for argument 'width'.

Can anybody please solve this problem. Thanks in advance.

Comments
Please login to comment.