I have a .CSV file named TEMP2.csv which contains the following:
1376460059,4,33.29,33.23,33.23,33.29,33.23,33.29,33.29,33.29,33.33,33.29,33.33,33.29,33.33,33.33,33.37,33.33,33.33,33.33,33.33,33.37,33.37,33.37,33.37
This is how I am reading the file:
import csv
import numpy as np
data = np.genfromtxt('TEMP2.csv',delimiter=',', skip_header=2)
After skipping the fisrt two number I need to add the next 4 numbers to a first row in a matrix. The next 4 to the second row in the same matrix and so on.
However that is just not working, I am really new to python been trying for some days and still I do not get the results. I will apreciate your help so much. Thanks.