Data Cleaning With Python, Data Analysis, Dataframes Python, Marketing Analytics.
business and first class values and making sure they are equal to the total passengers on the plane. sum_classes = flights[['economy_class', 'business_class', 'first_class']].sum(axis = 1) passenger_equ = sum_classes == flights['total_passengers'] # Find and filter out rows with inconsistent