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())
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())