Challenge

Project 2 - EDA on Vehicle Insurance Customer Data

EDA on Vehicle Insurance Customer Data using Python

Question

A company has customer data that contains 8 columns of customer details and another table having name customer_policy data contains the policy details of the customer.

The company intends to offer some discount in premium for certain customers. To do that they ask their Data scientist team to get some information. Hence, following tasks DS team decided to perform:

1. Add the column names to both datasets:

i. Column Name for customer details table

ii. Column Name for customer_policy table:

customer_id,

annual premium (in Rs),

sales channel code,

vintage and response.

2. Checking and Cleaning Data Quality:

i. Null values

  • Generate a summary of count of all the null values column wise
  • Drop Null values for customer_id because central tendencies for id’s is not feasible.
  • Replace all null values for numeric columns by mean.
  • Replace all null values for Categorical value by mode.

ii. Outliers

  • Generate a summary of count of all the outliers column wise
  • Replace all outlier values for numeric columns by mean.

iii. White spaces

  • Remove white spaces

iv. case correction(lower or upper, any one)

v. Convert nominal data (categorical) into dummies

  • for future modeling use if required

vi. Drop Duplicates (duplicated rows)

3. Create a Master table for future use. Join the customer table and customer_policy table to get a master table using customer_id in both tables.

4. Company needs some important information from the master table to make decisions for future growth.They needs following information:

i. Gender wise average annual premium

ii. Age wise average annual premium

iii. Is your data balanced between the genders?

(Hint: Data is balanced if number of counts in each group is approximately same)

iv. Vehicle age wise average annual premium.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.