I have tried to make my program work, but as I don't have a lot of experience, I have faced a lot of problems. The idea of my work is that I analyze the data of the csv file and change the negative values to 0. So far I have managed to get all the data from the file and save it to a list, and manually assigning the "start" and "end" times of the file.
import csv
data = []
filename = str(input("Give the file name: "))
with open(filename) as csvfile:
spamreader = csv.reader(csvfile, delimiter=';')
for row in spamreader:
data.append(row)
print("File", filename, "is opened,", len(data),"rows will be analyzed.")
data.pop(0) #deletes the header
print (f'Analyzing data between dates {data[0][0]} and {data[1097][0]}.') #data[row][column]
How is it possible to change the negative values in the data (screenshot) to 0, and then save everything to a new csv file? Help would be massivly appreciated.
screenshot inside the CSV file

[In the actual data file there is 1000+ rows]