From 5caf74df783b621d6f07c6321aed612832d7cb6a Mon Sep 17 00:00:00 2001 From: Norbert Walkowiak Date: Tue, 18 Apr 2023 07:50:59 +0200 Subject: [PATCH] fix --- s487175-create-dataset-script.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/s487175-create-dataset-script.py b/s487175-create-dataset-script.py index 93e297c..055700a 100644 --- a/s487175-create-dataset-script.py +++ b/s487175-create-dataset-script.py @@ -6,10 +6,9 @@ import pandas as pd diamonds = pd.read_csv('diamonds.csv') #Wyƛwietlenie zbioru danych -cutoff = os.environ.get('CUTOFF') +cutoff = os.environ.get('CUTOFF', None) if cutoff is None: print("CUTOFF parameter not set.") - diamonds else: cutoff = int(cutoff) diamonds = diamonds[:cutoff]