When I cycle through, the issue is that it takes the first value only and does not apply the second and third values. I want this to cycle 20 times to get a better understanding of what's going on. I have looked at W3 schools and other resources and I don't know where I am running into an issue
#Creating a loop to run through
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
a1_0 = Three_Time #Array 1 initial value
a2_0 = Two_Time #Array 2 initial value
i = 0
time = [0]
Hour_cap = 20
array1 = np.array([a1_0]* i)
array2 = np.array([a2_0] * i )
while i < Hour_cap:
i += 1
time = np.append(time, i)
array1 = np.append(array1, array1[i])
array2 = np.append(array2, array2[i])
Expected Output: array1[0,192,384....]
np.appendis going to take much more time.