From 527bb85785931cf774bb6f2bc07f77c666eea743 Mon Sep 17 00:00:00 2001 From: Gayatri Venugopal Date: Tue, 24 Sep 2024 17:09:33 +0530 Subject: [PATCH] Added keyword argument to resolve an error When I tried sns.countplot('species', data=df) on the iris dataset, I got the following error: TypeError Traceback (most recent call last) in () ----> 1 sns.countplot('species', data=df) TypeError: countplot() got multiple values for argument 'data' --- Section 1- Python Crash Course/5- Seaborn.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Section 1- Python Crash Course/5- Seaborn.ipynb b/Section 1- Python Crash Course/5- Seaborn.ipynb index fb20f62..2b1c583 100644 --- a/Section 1- Python Crash Course/5- Seaborn.ipynb +++ b/Section 1- Python Crash Course/5- Seaborn.ipynb @@ -532,7 +532,7 @@ "source": [ "## Count plot\n", "\n", - "sns.countplot('sex',data=df)" + "sns.countplot(x='sex',data=df)" ] }, {