May-15-2020, 12:20 PM
Probably your data frame is filled with empty strings. Here is a way to remove them.
df[df['Price'].astype(bool)]So basically, what we are doing here is that
df['Price'].astype(bool)returns True wherever there is a value in Price columns, and False wherever there is empty string.So when we use
df[df['Price'].astype(bool)],it returns just the rows that have True value for Price column.You can use any column in place of price