Closed Henrike-Schwenn closed 3 years ago
How to import the package
Specifications
Exceptions
Documentation
Describing the package's purpose
>>> 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"
05.07.2021 27 min
08.06.21
Eigene Module erstellen
EIGENE MODULE IN PYTHON ERSTELLEN
Packages
Module und Pakete
sys.path in Python
26 min
Steps