Update 'create_dataset.py'

This commit is contained in:
Wojciech Mikołajski 2023-04-17 21:28:02 +02:00
parent 8c1ed09de1
commit 0326097378

View File

@ -5,9 +5,13 @@
#api.authenticate()
#api.dataset_download_file('mssmartypants/water-quality', file_name='waterQuality1.csv')
import argparse
parser.add_argument('CUT', type=int, nargs='?', default=7999, help='Cut this number of rows from csv file')
#Reading DataSet from csv using pandas library
import pandas as pd
water = pd.read_csv('waterQuality1.csv')
water = pd.read_csv(os.path.join('.', 'waterQuality1.csv'), nrows = args.CUT)
#water.describe(include='all')