Carga de datos con loadtxt de NumPy
Código:
import numpy as np
url = 'https://gist.githubusercontent.com/ahcamachod/9be09de793dc3bf1e6c3d98eb4e5b1ef/raw/21b85572693200040e11284ef6dcfc3457ec8e11/citrus.csv'
datos_nt = np.loadtxt(url, delimiter=',', usecols=np.arange(1,6), skiprows=1)
datos_nt
Salida:
array([[ 2.96, 86.76, 172. , 85. , 2. ],
[ 3.91, 88.05, 166. , 78. , 3. ],
[ 4.42, 95.17, 156. , 81. , 2. ],
...,
[ 15.59, 256.5 , 168. , 82. , 20. ],
[ 15.92, 260.14, 142. , 72. , 11. ],
[ 16.45, 261.51, 152. , 74. , 2. ]])