One Fourth Labs
We deliver courseware in AI and related areas
# read csv file, print linewise values
with open('data.csv') as my_file:
content = my_file.read()
for line in content:
vals = line.split(',')
for val in vals:
print(val)
In [1]: import numpy as np
In [2]: a = np.identity(3)
In [3]: a
Out[3]:
array([[1., 0., 0.],
[0., 1., 0.],
[0., 0., 1.]])
By One Fourth Labs
The engineering side of data science