I am new to python, and I have no idea how to gather all needed value to multiple list. For example, I need all the row values of
df["notes"] == 0.5
so I write some codes to print specific values(e.g. 1.322921452, 0.838709677,....,0.749, 1.1827...,0.9921, 0.92473...) But the current code print all the sheets of 0.5 values, I need to separate them sheet by sheet into whatever dataframe or list. This is my current code
df_ls = [pd.DataFrame() for i in range(6)]
a = []
for i in range(5):
for j in (range(40)):
df = pd.read_excel("norm.xlsx",sheet_name = i)
for note in range(0, len(df["notes"])):
if df["notes"][note] == 0.5:
value = df.iloc[note, j+1]
I expect the list would be like
sheet1 = [1.322921452, 0.838709677...]
sheet2 = [0.534344,0.9484...]
.
.
.
sheet5 = [0.243,0.3331155]
Thanks a lot!!!
