April 2017
Beginner to intermediate
312 pages
7h 23m
English
Let's consider a scenario where we are reading data from different sensors. This data needs to be recorded to a CSV file where each column corresponds to a reading from a specific sensor. We are going to discuss an example where we record the value 123, 456, and 789 in the first row of the CSV file and the second row is going to consist of values including Red, Green, and Blue:
with open("csv_example.csv", 'w') as csv_file:
csv_writer = csv.writer(csv_file)
Read now
Unlock full access