how can you ignore blank cells in csv?

Found a solution here: dropping infinite values from dataframes in pandas?

I think the solution is to replace the inf values with nan:

pdf = pdf.replace([np.inf, -np.inf], np.nan)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top