text_plain_output_1.png
import pandas as pd

cars_data = pd.read_csv('../input/aqalds/AQA-large-data-set.csv')
cars_data

cleaned_cars_data = cars_data[(cars_data['EngineSize'] > 0) & (cars_data['Mass'] > 0) & (cars_data['CO2'] > 0)].copy()
cleaned_cars_data['PropulsionType'] = cars_data['PropulsionTypeId'].replace({1: 'Petrol', 2: 'Diesel', 3: 'Electric', 7: 'Gas/Petrol', 8: 'Electric/Petrol'})
cleaned_cars_data