I have one csv file that has 6 columns like date_time
, humidity
, temp_c
etc..
I want to extract month-wise data and find the mean of humidity per month. Note: without using third party lib like pandas numpy etc..only python oops concepts
import csv
with open('path', mode='r') as csv_file:
csv_reader = csv.DictReader(csv_file)
for row in csv_reader:
for key, value in row.items():
temp[key] = value