Manipulating csv file output in Python

Given a csv file with the values: 1,10,20,30,40,50,60,70,80,90,1002,210,220,230,240,250,260,270,280,290,3003,310,330,340,350,360,370,380,390,400,410 training_data_file = open ("Anaconda3JamesData/james_test_3.csv","r") training_data_list = training_data_file.readlines() training_data_file.close() count=0 for record in training_data_list: # split the record by , and create a…

Continue ReadingManipulating csv file output in Python

Understanding csv file outputs in Python

Given a csv file with the data 1,10,20,30,40,50,60,70,80,90,1002,210,220,230,240,250,260,270,280,290,3003,310,330,340,350,360,370,380,390,400,410 training_data_file = open ("Anaconda3JamesData/james_test_3.csv","r") training_data_list = training_data_file.readlines() training_data_file.close() count=0 for record in training_data_list: print (record) count+=1 pass print (count) 1,10,20,30,40,50,60,70,80,90,100 2,210,220,230,240,250,260,270,280,290,3003,310,330,340,350,360,370,380,390,400,410 3…

Continue ReadingUnderstanding csv file outputs in Python

Returning normalised data from a csv file in Python

Given a csv file with the contents 1,10,20,30,40,50,60,70,80,90,1002,210,220,230,240,250,260,270,280,290,3003,310,330,340,350,360,370,380,390,400,410 I want to read all data except the first value of each row (effectively ignore the first column). Before output, I want…

Continue ReadingReturning normalised data from a csv file in Python