import unicodecsv enrollments_filename='' with open('enrollments.csv', 'rb') as f: reader = unicodecsv.DictReader(f) enrollements = list(reader) with open('daily_engagement.csv', 'rb') as f: reader = unicodecsv.DictReader(f) daily_engagement = list(reader) with open('project_submissions.csv', 'rb') as f: reader = unicodecsv.DictReader(f) project_submissions = list(reader) daily_engagement = None project_submissions = None
import unicodecsv def read_csv(filename): with open(filename, 'rb') as f: reader = unicodecsv.DictReader(f) return list(reader) enrollments = read_csv('') daily_engagement = read_csv('') project_submissions = read_csv('') enrollment_num_rows = 0 enrollment_num_unique_students = 0 engagement_num_rows = 0 engagement_num_unique_students = 0 submission_num_rows = 0 submission_num_unique_students = 0