update
This commit is contained in:
parent
ad787929fa
commit
235e8246e7
@ -1,13 +1,18 @@
|
||||
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import pandas as pd
|
||||
diamonds = pd.read_csv('diamonds.csv')
|
||||
#Wyświetlenie zbioru danych
|
||||
diamonds
|
||||
|
||||
cutoff = int(os.environ['CUTOFF'])
|
||||
diamonds = diamonds[:cutoff]
|
||||
#Wyświetlenie zbioru danych
|
||||
cutoff = int(os.environ.get('CUTOFF', -1))
|
||||
if cutoff == -1:
|
||||
print("CUTOFF parameter not set.")
|
||||
diamonds
|
||||
else:
|
||||
cutoff = int(os.environ['CUTOFF'])
|
||||
diamonds = diamonds[:cutoff]
|
||||
|
||||
# %%
|
||||
#przydzielanie nazwy kolumny z id
|
||||
|
Loading…
Reference in New Issue
Block a user