<jupyter_start><jupyter_text>Update NASA weather files rain data<jupyter_code>import os
weather_files = os.listdir('/Users/mikhailgasanov/Documents/machine_learning/NASA_EU_RUS/weather_files/')
for index, line in enumerate(weather_files):
    if line[:4]!='NASA':
        print(index, line)
        weather_files.remove(line)

from tempfile import NamedTemporaryFile
import shutil
import csv
path = '/Users/mikhailgasanov/Documents/machine_learning/NASA_EU_RUS/weather_files/'
for weather in weather_files:
    filename = os.path.join(path, weather)
    tempfile = NamedTemporaryFile('w+t', newline='', delete=False)

    with open(filename, 'r', newline='') as csvFile, tempfile:
        reader = csv.reader(csvFile, delimiter=',', quotechar='"')
        writer = csv.writer(tempfile, delimiter=',', quotechar='"')

        for index,row in enumerate(reader):
            if index>8:
                row[6] = str(float(row[6])*10)
            writer.writerow(row)
    shutil.move(tempfile.name, filename)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1285024154589372, 'fraction_numerical': 0.005797101449275362, 'mean_word_length': 4.206030150753769, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '80844', 'license': 'MIT', 'n_tokens_mistral': 361, 'n_tokens_neox': 336, 'n_words': 66, 'path': 'jupyter_notebooks/NASA_update.ipynb', 'repo_name': 'EDSEL-skoltech/multi_objective_irrigation', 'size': '1035'}