delete -inf from pandas code example Example: how to delete a column from a dataframe in python del df['column']