Question 6
Imagine you’ve loaded a dataset with 1000 samples into a Pandas DataFrame, and each sample has 30 features. Unfortunately, some samples have missing values for a few features, and you want to remove samples with more than 3 null values present. Please select the method to accomplish this task.?
drop(how= 27)
drop(columns=[‘all’])
dropna(thresh = 27)
dropna(how=‘any’)
dropna(thresh=3)