The following code gives me A for i=1,2. But then I want A for each i to append and give combined A i.e. for both i=1,2. I present the current and expected outputs.
import pandas as pd
import numpy as np
A=[]
for i in range(1,3):
    file_loc = f"C:\\Users\\USER\\OneDrive - Technion\\Research_Technion\\Python_PNM\\Sept12_2022\\{i}\\Test.xlsx"
    df = pd.read_excel(file_loc, index_col=None, na_values=['NA'], usecols="A,C:AA")
    A=df["N"].to_numpy()
    
    A = [x for x in A if str(x) != 'nan']
    
    A = [eval(e) for e in A]
    print([A])
The current output is
[[1], [2], [3], [4], [5]]
[[8], [4], [6], [2], [3]]
The expected output is
[[[1], [2], [3], [4], [5]],[[8], [4], [6], [2], [3]]]
 
     
    