I'm trying to se the evolution of my invetimens over the time and I'm stuck in a problem. When I try to loop the initial value x variation, I get a full NaN column
here's the code
value = 1000
total = []
for variation in df["Variation"]:
value = value * variation
total.append(value)
I've tryed the same algorithm and worked
list=[1,2,3,4,5]
a = 2
results = []
for x in list:
a = a * x
results.append(a)
where is the mistake?