![]() Pandas accepts every valid string path and URLs, thereby you could also give a full path. Import pandas as pd SouthKoreaRoads_df = pd.read_csv('data/SouthKoreaRoads.csv') If its in folder "data" then add data in front of the file seperated with a "/" For example if the csv is in a subdirectry (in respect to the python / jupyter you are working on) you need to add the directories name. If the file is located in another directy, you need to specify this directory. Import pandas as pd SouthKoreaRoads_df = pd.read_csv('SouthKoreaRoads.csv') Before you can use pd.read_csv to import your data, you need to locate your data in your filesystem.Īsuming you use a jupyter notebook or pyton file and the csv-file is in the same directory you are currently working in, you just can use:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |