<jupyter_start><jupyter_text>Read csv file and parse<jupyter_code>data = []
with open('/home/rvazquez/Downloads/jalisco.csv', 'r') as f:
    header = f.readline().split(',')
    counter = 0
    for line in f:
        if counter == 10:
            break
            
        fields  = line.split(',')
        entry = {}
        for i, value in enumerate(fields):
            entry[header[i].strip()] = value.strip()
        data.append(entry)
        counter += 1
            
header<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.138671875, 'fraction_numerical': 0.0078125, 'mean_word_length': 2.0535714285714284, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '213475', 'license': 'Unlicense', 'n_tokens_mistral': 172, 'n_tokens_neox': 165, 'n_words': 36, 'path': 'CSV Data.ipynb', 'repo_name': '211217613/python_meetup', 'size': '512'}