<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Exercise 04
Logistic regression for credit scoring
Banks play a crucial role in market economies. They decide who can get finance and on what terms and can make or break investment decisions. For markets and society to function, individuals and companies need access to credit. 
Credit scoring algorithms, which make a guess at the probability of default, are the method banks use to determine whether or not a loan should be granted. This competition requires participants to improve on the state of the art in credit scoring, by predicting the probability that somebody will experience financial distress in the next two years. Dataset
Attribute Information
Step1:  Drop na
Step2:  Create X and y
<ASSISTANT_TASK:>
Python Code:
import pandas as pd
pd.set_option('display.max_columns', 500)
import zipfile
with zipfile.ZipFile('../datasets/KaggleCredit2.csv.zip', 'r') as z:
    f = z.open('KaggleCredit2.csv')
    data = pd.read_csv(f, index_col=0)
data.head()
data.shape
Explanation: Exercise 04
Logistic regression for credit scoring
Banks play a crucial role in market economies. They decide who can get finance and on what terms and can make or break investment decisions. For markets and society to function, individuals and companies need access to credit. 
Credit scoring algorithms, which make a guess at the probability of default, are the method banks use to determine whether or not a loan should be granted. This competition requires participants to improve on the state of the art in credit scoring, by predicting the probability that somebody will experience financial distress in the next two years. Dataset
Attribute Information:
|Variable Name  |   Description |   Type|
|----|----|----|
|SeriousDlqin2yrs   |   Person experienced 90 days past due delinquency or worse    |   Y/N|
|RevolvingUtilizationOfUnsecuredLines   |   Total balance on credit divided by the sum of credit limits |   percentage|
|age    |   Age of borrower in years    |   integer|
|NumberOfTime30-59DaysPastDueNotWorse   |   Number of times borrower has been 30-59 days past due | integer|
|DebtRatio  |   Monthly debt payments   |   percentage|
|MonthlyIncome  |   Monthly income  |   real|
|NumberOfOpenCreditLinesAndLoans    |   Number of Open loans |  integer|
|NumberOfTimes90DaysLate    |   Number of times borrower has been 90 days or more past due. |   integer|
|NumberRealEstateLoansOrLines   |   Number of mortgage and real estate loans    |   integer|
|NumberOfTime60-89DaysPastDueNotWorse   |   Number of times borrower has been 60-89 days past due |integer|
|NumberOfDependents |   Number of dependents in family  |   integer|
Read the data into Pandas
End of explanation
data.isnull().sum(axis=0)
data.dropna(inplace=True)
data.shape
Explanation: Drop na
End of explanation
y = data['SeriousDlqin2yrs']
X = data.drop('SeriousDlqin2yrs', axis=1)
y.mean()
Explanation: Create X and y
End of explanation
<END_TASK>