Hello,
I am working on a project where I would like to read data from a csv file using python mode. From what I can gather, I need to create a Reader, though I am uncertain how to do so (please note that I am a self taught coder). I am following the reference on the Processing site here (createReader() \ Language (API)), though it says that the example is broken. Also, I only want to access data from 3 columns of the csv file. Sample csv data is here:
Thursday 2/4/2021 15:39:44 100 126 56
Thursday 2/4/2021 15:39:47 100 92 90
Thursday 2/4/2021 15:39:49 100 92 77
Thursday 2/4/2021 15:39:51 100 92 37
Thursday 2/4/2021 15:39:53 100 92 86
Thursday 2/4/2021 15:39:55 100 92 91
I only want to use data from the last three columns.
Here is what I have so far in my code:
import csv
filename = 'BiometricDataTest.csv'
def setup():
size(1920, 1080)
reader = csv.reader(open(filename),quoting=csv.QUOTE_NONNUMERIC)
def draw():
background(255)
#read data
for row in reader:
And that is where I am stuck.