-
-
Notifications
You must be signed in to change notification settings - Fork 801
Open
Labels
type:enhancementPropose enhancement to the lessonPropose enhancement to the lesson
Description
Some users might have trouble reading data if they use relative paths after downloading and extracting the dataset provided in setup.
Good to add a note of using Absolute paths.
Relative paths:
numpy.loadtxt("inflammation-01.csv")
Absolute Paths:
Windows:
numpy.loadtxt("D:\python-novice-inflammation-data\data\inflammation-01.csv")
or
numpy.loadtxt(r"D:\python-novice-inflammation-data\data\inflammation-01.csv")
Linux/MacOS:
numpy.loadtxt("D:/python-novice-inflammation-data/data/inflammation-01.csv")
Setting the path to the current working directory where the program is being executed:
import os
os.chdir(os.getcwd())
Metadata
Metadata
Assignees
Labels
type:enhancementPropose enhancement to the lessonPropose enhancement to the lesson