At the moment I have a large section of code that looks like this:
daily_stats.Turnover = int(row[2])
daily_stats.Cars = int(row[0])
daily_stats.Cash = int(row[29])
daily_stats.Card = int(row[33])
daily_stats.Other = int(row[31]) + int(row[35]) + int(row[37])
daily_stats.Exit = int(row[43])
daily_stats.Manual = int(row[42])
daily_stats.Open = int(row[47])
This continues for about 30 lines and, while it gets the job done, isn't very tidy or pythonic.
Is there a cleaner way to do this in Python?