Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove nans and infs python

df.replace([np.inf, -np.inf], np.nan).dropna(axis=1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #nans #infs #python
ADD COMMENT
Topic
Name
8+2 =