How to drop empty rows from a Pandas dataframe in Python Use DataFrame.dropna() Use DataFrame.replace()