text_plain_output_1.png
import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('/kaggle/input/yourcabs/YourCabs_training.csv')

df.shape

data = df.drop(['Car_Cancellation', 'Cost_of_error'], axis=1)
target = df[['Car_Cancellation']]

data.isnull().mean()

data = data.drop(['id', 'user_id', 'package_id', 'to_area_id', 'from_city_id', 'to_city_id', 'to_date'], axis=1)

data.shape

data = data.drop(['vehicle_model_id'], axis=1)

print(data[data['from_lat'] == data['from_lat'].median()]['from_area_id'].max())
print(data['from_lat'].median())
print(data['from_long'].median())