This commit is contained in:
Norbert Walkowiak 2023-04-18 07:50:59 +02:00
parent 25e9339748
commit 5caf74df78

View File

@ -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]