'Dictionary - Multiplying an Daily Matrix (Date, 4 Entities) by a Constant Works ... but Results Yielding an Empty Dictionary?

I am trying to do a very simple task but cannot seem to get my code right... I've spent time troubleshooting other/bigger pieces of the code and getting my systems to work properly and now that some wheels are turning I'm just terribly stuck on this tiny seemingly easy bit that I just can't crack.

In a nutshell: I have daily data for four entities (3 pumps and leakage values) for a calendar year. I need to multiply each value by 24 and save these results (preferably in a dictionary) which will be the input data for the next step in the larger problem I am trying to solve (where this resultant data set and another data set will be divided by one another for each pump for every day of the year). The data will be being read in via a CSV file. I am able to get the pump units to multiply properly when I am inside the for loop but my final print statement is giving me a blank dictionary.

Input Data (365 lines of data):

Date,       FT1003,  FT2003,    FT3003,  LEAK
1/1/2021,   93,      0,         3,       10
1/2/2021,   0,       94,        2,       10
1/3/2021,   70,      54,        94,      10
1/4/2021,   70,      85,        87,      10

This is what my current printout looks like working with abbreviated data:

['1/1/21,93,0,3,10\n', '1/2/21,0,94,2,10']
2232.0
0.0
result={'1/1/21': {}, '1/2/21': {}}
print('Trying to solve a simple problem')
fhand2 = open('WSE_Daily_CY21_short.csv', 'r')
daily = fhand2.readlines()
print(daily)

result = {}
for line in daily:
    date, unit1, unit2, unit3, leak = line.split(",")
    unit1 = (float(unit1))*24
    unit2 = (float(unit2))*24
    unit3 = (float(unit3))*24
    leak = (float(leak))*24
    print(unit1)  #this print has the multiplication correct for unit 1 but isn't in the dictionary
    result[date] = dict()
print(f"result={result}")}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source