Answers for "how to convert csv to numpy ndarray python"

4

numpy from csv

from numpy import genfromtxt
my_data = genfromtxt('my_file.csv', delimiter=',')
Posted by: Guest on September-28-2020
3

numpy to csv

import numpy as np
x = np.arange(0.0,5.0,1.0)
np.savetxt('test.csv', x, delimiter=',')
Posted by: Guest on September-15-2020

Code answers related to "how to convert csv to numpy ndarray python"

Python Answers by Framework

Browse Popular Code Answers by Language