Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if dataframe contains infinity

df.replace([np.inf, -np.inf], np.nan).dropna(subset=["col1", "col2"], how="all")
 
PREVIOUS NEXT
Tagged: #check #dataframe #infinity
ADD COMMENT
Topic
Name
4+8 =