Created
February 19, 2017 23:48
-
-
Save jtrive84/3e9f6783c66e1be58206c462d1b1efcf to your computer and use it in GitHub Desktop.
Reading dataset with genfromtxt (numpy)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
fpath = "challenger.csv" | |
# Setting dtype to `None` forces genfromtxt to determine | |
# the datatypes of each column => | |
res = np.genfromtxt(fname=fpath, | |
dtype=None, | |
delimiter=",", | |
autostrip=True, | |
names=True) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment