I'm very new to Python, but cannot figure out this simple ask. I have a Pandas DataFrame that contains 8 values in two different columns. I'm trying to gather these values into their own lists so I can run stats on them.
n1 = df.iloc[0:4,2:3]
n2 = df.iloc[4:9,13:14]
total = pd.concat([n1,n2], axis=0)
but at this point my 'total' df is riddled with NaN. I've tried
mean = total.mean(axis=0, numeric_only = int)
but it doesnt work.
How can I get the two portions of the df into a list without NaN or how can I calculate stats on a df riddled with NaNs?
Thank you!