I have a dataFrame
like:
a b
0 4 7
1 3 2
2 1 9
3 3 4
4 2 Nan
I need to calculate min, mean, std, sum
, for all dataFrame as a single list of numbers. (e.g minimum here is 1)
EDIT: The data may have Nans or different size columns.
df.to_numpy().mean()
Produce Nan
, because there are nans in the arrays and they have different length.
How to calculate all normal math stuff on all of these numbers ?