Python read csv data
From wikiluntti
Introduction
Read csv data into python
Numpy
import csv
import matplotlib.pyplot as plt
import numpy as np
datalist = []
with open('co2_data1.csv', mode ='r')as file:
csvFile = csv.reader(file)
for line in csvFile:
t = float( line[0])
T = float( line[1])
h = float( line[2])
CO2 = float( line[3])
datalist.append( [t, T, h, CO2] )
data = np.array( datalist)