Henrike-Schwenn / Predicting_bike_rental_demand

My first ai project as part of my take on the amazing online course "Introduction to Machine Learning for Coders" taught by Jeremy Howard. I will be contributing to the Kaggle competition "Bike Sharing Demand", aiming to predict bike rental demand depending on the weather.
3 stars 0 forks source link

Build package "CsvDataset" #17

Closed Henrike-Schwenn closed 3 years ago

Henrike-Schwenn commented 3 years ago

08.06.21

26 min

Steps

Henrike-Schwenn commented 3 years ago

Content of "init.py"

Henrike-Schwenn commented 3 years ago

One file for the code to be executed

Henrike-Schwenn commented 3 years ago
>>> sys.path.append('C:/Users/henri/OneDrive/Dokumente/Berufseinstieg/Sprachtechnologie/Predicting_Bike_Rental_Demand')
>>> import CsvDataset
>>> TestPackageInstance = CsvObject("C:/Users/henri/OneDrive/Dokumente/Berufseinstieg/Sprachtechnologie/Predicting_Bike_Rental_Demand/CsvDataset", "Test_csv_file.csv","testPackageInstance
")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'CsvObject' is not defined

Possible solutions

import CsvDataset.ClassCSVDataset
TestDataframe = CsvDataset.ClassCSVDataset.CsvObject("C:/Users/henri/OneDrive/Dokumente/Berufseinstieg/Sprachtechnologie/Predicting_Bike_Rental_Demand/CsvDataset","Test_csv_file.csv","testDataframe")
FileNotFoundError: [Errno 2] No such file or directory: 'Test_csv_file.csv'

24.06.21 40 min

TestDataframe.CreateDataframe()
   Teesorten   Kommunikationsblocker   Unsinnige Zeichenfolgen
0      False                   False                     False
1      False                   False                     False

Actual content of the csv file:

Teesorten, Kommunikationsblocker, Unsinnige Zeichenfolgen "Gunpowder", "Sich an einem Fischbrötchen verschlucken", "bet0934vnar" "Darjeeling", "Unmoralische Angebote", "35fknvf"

Henrike-Schwenn commented 3 years ago

05.07.2021 27 min