From ead7af856f47470d781c4f7fac0ad0a572735729 Mon Sep 17 00:00:00 2001 From: Norbert Walkowiak Date: Sat, 15 Apr 2023 11:59:21 +0200 Subject: [PATCH] fix --- s487175-create-dataset-script.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/s487175-create-dataset-script.py b/s487175-create-dataset-script.py index 41ed9e5..10229a9 100644 --- a/s487175-create-dataset-script.py +++ b/s487175-create-dataset-script.py @@ -63,6 +63,8 @@ diamonds_test["cut"].value_counts() diamonds_dev["cut"].value_counts() # %% +import subprocess +subprocess.check_call(["pip", "install", "matplotlib"]) import matplotlib.pyplot as plt plt.figure(figsize=(8, 6)) @@ -73,9 +75,6 @@ plt.ylabel('Liczba wystąpień') plt.show() # %% -import subprocess -subprocess.check_call(["pip", "install", "matplotlib"]) -import matplotlib.pyplot as plt plt.figure(figsize=(8, 6)) diamonds_train['cut'].value_counts().plot(kind='bar')