0
Q:

remove nana from np array

x = x[numpy.logical_not(numpy.isnan(x))]
0
df.replace([np.inf, -np.inf], np.nan).dropna(axis=1)
0
x = x[~numpy.isnan(x)]
0

New to Communities?

Join the community