24_deb_pkg_gov/cleaning_contrib_files.py

22 lines
472 B
Python
Raw Normal View History

2024-01-22 17:20:52 +00:00
import csv
import os
import json
def csv_count():
with open("011824_uni_contrib.csv", "r") as file:
reader = csv.reader(file)
true_rep_counter = 0
for i, line in enumerate(reader):
if line[2] == line[3] == line[4] == line[5] == '0':
print("zeroes")
else:
print(line)
true_rep_counter += 1
print(true_rep_counter)
if __name__ == "__main__":
csv_count()