We can use the isNotNull() function in combination with the filter method to filter rows with non-null values. For example: df.filter(df["ColumnName"].isNotNull()).