Skip to content

Instantly share code, notes, and snippets.

@prabhant
Last active June 25, 2018 14:10
Show Gist options
  • Save prabhant/a570962c032a225024e043ddde78ad3a to your computer and use it in GitHub Desktop.
Save prabhant/a570962c032a225024e043ddde78ad3a to your computer and use it in GitHub Desktop.
Indikitproject
with open('indlib8.csv') as f:
...: reader = csv.reader(f)
...: for row in reader:
...: p = Indicator()
...: arr.append(p)
...: p.save()
p = Indicator(level = row[0], sector =row[5], subsector=row[6], number = row[1], definition = row[7],justification = row[8], unit_of_measure = row[9], disaggregation = row[11], direction_of_change = row[12], baseline = row[13], rationale_for_target = row[15], means_of_verification = row[16], question_format = row[17], data_collection_method = row[18], denominator = row[20], numnerator = row[21], responsible_person = row[22], methods_of_analysis = row[23], information_use = row[24], quality_assurance = row[26], data_issues = row[27],indicator_changes = row[28], comments = row[29])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment