Numpy, Data Cleaning.
with missing values. # Create a 2D array with missing values data = np.array([[1, 2, 3], [4, np.nan, 6], [7, 8, 9]]) # Remove rows with any missing values cleaned_data = data[~np.any(np.isnan(data), axis=1)] print(cleaned_data) # Result: [[1,2,3],[7,8,9]] Section 5-Removing Outliers: data =