I convert part of a pandas dataframe to a numpy array and I want to fill it's values with the mean of the columns, similarily to how I would do the following in pandas:
df.fillna(df.mean(), inplace = True)
The only way I have been able to do it so far is iterate over the columns. Is there another way?
thank you!