Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas remove nan, inf

df[~df.isin([np.nan, np.inf, -np.inf]).any(1)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #remove #inf
ADD COMMENT
Topic
Name
3+3 =