0% found this document useful (0 votes)
82 views

Code

The document summarizes the steps taken to prepare loan data for modeling. It involves: 1. Unzipping train and test data from zip files 2. Loading the train, test and submission data into pandas dataframes 3. Dropping rows with missing values from the train dataframe 4. Extracting date fields like year, month from date columns and adding them as separate columns for both train and test data.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views

Code

The document summarizes the steps taken to prepare loan data for modeling. It involves: 1. Unzipping train and test data from zip files 2. Loading the train, test and submission data into pandas dataframes 3. Dropping rows with missing values from the train dataframe 4. Extracting date fields like year, month from date columns and adding them as separate columns for both train and test data.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":

{"name":"LTFS.ipynb","provenance":
[],"mount_file_id":"1fab4uP2moEzbpp_o_yDmntYkKBmGm4Xm","authorship_tag":"ABX9TyMi7H
nYL3jwVn/toCIXMlsh"},"kernelspec":{"name":"python3","display_name":"Python
3"}},"cells":[{"cell_type":"code","metadata":{"colab":
{"base_uri":"https://localhost:8080/"},"id":"aRzHYUsJlV3E","executionInfo":
{"status":"ok","timestamp":1612078518769,"user_tz":300,"elapsed":23714,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}},"outputId":"1c6836ab-
1558-4383-8508-a6f32dfe366e"},"source":["!
unzip \"/content/drive/MyDrive/Hackathons/Hackathons/LTFS/Train.zip\" \r\n","!
unzip \"/content/drive/MyDrive/Hackathons/Hackathons/LTFS/Test.zip\"
\r\n"],"execution_count":98,"outputs":[{"output_type":"stream","text":
["Archive: /content/drive/MyDrive/Hackathons/Hackathons/LTFS/Train.zip\n","replace
Train/data_dict.xlsx? [y]es, [n]o, [A]ll, [N]one, [r]ename: y\n"," inflating:
Train/data_dict.xlsx \n","replace __MACOSX/Train/._data_dict.xlsx? [y]es, [n]o,
[A]ll, [N]one, [r]ename: y\n"," inflating: __MACOSX/Train/._data_dict.xlsx
\n","replace Train/.DS_Store? [y]es, [n]o, [A]ll, [N]one, [r]ename: y\n","
inflating: Train/.DS_Store \n","replace __MACOSX/Train/._.DS_Store? [y]es,
[n]o, [A]ll, [N]one, [r]ename: y\n"," inflating: __MACOSX/Train/._.DS_Store
\n","replace Train/train_Data.xlsx? [y]es, [n]o, [A]ll, [N]one, [r]ename: y\n","
inflating: Train/train_Data.xlsx \n","replace __MACOSX/Train/._train_Data.xlsx?
[y]es, [n]o, [A]ll, [N]one, [r]ename: y\n"," inflating:
__MACOSX/Train/._train_Data.xlsx \n","replace Train/train_bureau.xlsx? [y]es,
[n]o, [A]ll, [N]one, [r]ename: y\n"," inflating: Train/train_bureau.xlsx
\n","replace __MACOSX/Train/._train_bureau.xlsx? [y]es, [n]o, [A]ll, [N]one,
[r]ename: y\n"," inflating: __MACOSX/Train/._train_bureau.xlsx \n","replace
__MACOSX/._Train? [y]es, [n]o, [A]ll, [N]one, [r]ename: y\n"," inflating:
__MACOSX/._Train \n","Archive:
/content/drive/MyDrive/Hackathons/Hackathons/LTFS/Test.zip\n","replace
test_bureau.xlsx? [y]es, [n]o, [A]ll, [N]one, [r]ename: y\n"," inflating:
test_bureau.xlsx \n","replace __MACOSX/._test_bureau.xlsx? [y]es, [n]o,
[A]ll, [N]one, [r]ename: y\n"," inflating: __MACOSX/._test_bureau.xlsx
\n","replace test_Data.xlsx? [y]es, [n]o, [A]ll, [N]one, [r]ename: y\n","
inflating: test_Data.xlsx \n","replace __MACOSX/._test_Data.xlsx? [y]es,
[n]o, [A]ll, [N]one, [r]ename: y\n"," inflating: __MACOSX/._test_Data.xlsx
\n"],"name":"stdout"}]},{"cell_type":"code","metadata":
{"id":"XpRcx9YYmB_C","executionInfo":
{"status":"ok","timestamp":1612079881735,"user_tz":300,"elapsed":826,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}}},"source":["import pandas
as pd\r\n","import numpy as np\r\n","import json\r\n","from matplotlib import
pyplot as plt\r\n","%matplotlib inline\r\n","import seaborn as sns\r\n","from
sklearn.impute import SimpleImputer\r\n","from sklearn.preprocessing import
StandardScaler"],"execution_count":1,"outputs":[]},{"cell_type":"code","metadata":
{"id":"Frx-C4YFmPya","executionInfo":
{"status":"ok","timestamp":1612079917406,"user_tz":300,"elapsed":33407,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}}},"source":["input_train =
pd.read_excel(\"/content/Train/train_Data.xlsx\")\r\n","input_test =
pd.read_excel(\"/content/test_Data.xlsx\")\r\n","submission =
pd.read_csv(\"/content/drive/MyDrive/Hackathons/Hackathons/LTFS/sample_submission_e
jm25Dc.csv\")"],"execution_count":2,"outputs":[]},{"cell_type":"code","metadata":
{"id":"vDNOW81MmuHN"},"source":
["input_train.head()"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"DSCAiKUbmyR-"},"source":
["input_train.dtypes"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"uzXu9uVfntBy"},"source":
["input_train.isna().sum()"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"9cVKcgCOo-Q6"},"source":
["input_train.nunique()"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"hZj6m7TSFTq3","executionInfo":
{"status":"ok","timestamp":1612079919935,"user_tz":300,"elapsed":402,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}}},"source":
["input_train['Area']=input_train['Area'].mask(pd.isnull,
input_train['City'])\r\n","input_train['City']=input_train['City'].mask(pd.isnull,
input_train['Area'])\r\n","input_train['City']=input_train['City'].mask(pd.isnull,
input_train['ZiPCODE'])\r\n","input_train['Area']=input_train['Area'].mask(pd.isnul
l,
input_train['ZiPCODE'])\r\n","input_train.isna().sum()\r\n","input_test['Area']=inp
ut_test['Area'].mask(pd.isnull,
input_test['City'])\r\n","input_test['City']=input_test['City'].mask(pd.isnull,
input_test['Area'])\r\n","input_test['City']=input_test['City'].mask(pd.isnull,
input_test['ZiPCODE'])\r\n","input_test['Area']=input_test['Area'].mask(pd.isnull,
input_test['ZiPCODE'])"],"execution_count":3,"outputs":[]},
{"cell_type":"code","metadata":{"colab":
{"base_uri":"https://localhost:8080/"},"id":"msFuzSms5vZo","executionInfo":
{"status":"ok","timestamp":1612079923182,"user_tz":300,"elapsed":567,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}},"outputId":"7853c93e-
fa4e-4151-8962-99db80393427"},"source":["input_train =
input_train.dropna()\r\n","print(input_train.isna().sum())\r\n","print(input_train.
nunique)\r\n","\r\n"],"execution_count":4,"outputs":
[{"output_type":"stream","text":["ID 0\n","Frequency
0\n","InstlmentMode 0\n","LoanStatus 0\n","PaymentMode
0\n","BranchID 0\n","Area 0\n","Tenure
0\n","AssetCost 0\n","AmountFinance 0\n","DisbursalAmount
0\n","EMI 0\n","DisbursalDate 0\n","MaturityDAte
0\n","AuthDate 0\n","AssetID 0\n","ManufacturerID
0\n","SupplierID 0\n","LTV 0\n","SEX
0\n","AGE 0\n","MonthlyIncome 0\n","City
0\n","State 0\n","ZiPCODE 0\n","Top-up Month
0\n","dtype: int64\n","<bound method DataFrame.nunique of ID
Frequency ... ZiPCODE Top-up Month\n","0 1 Monthly ...
464993.0 > 48 Months\n","1 2 Monthly ... 466001.0 No Top-
up Service\n","2 3 Quatrly ... 462030.0 12-18 Months\n","3
7 Monthly ... 473335.0 > 48 Months\n","4 8
Monthly ... 495442.0 36-48 Months\n","... ... ... ...
... ...\n","128650 143390 Half Yearly ... 131403.0 24-30
Months\n","128651 143391 Half Yearly ... 131403.0 No Top-up Service\n","128652
143393 Monthly ... 131024.0 No Top-up Service\n","128653 143394 Half
Yearly ... 131103.0 No Top-up Service\n","128654 143395 Half Yearly ...
131402.0 No Top-up Service\n","\n","[128043 rows x 26
columns]>\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"7WQMO-
Yp5_DH"},"source":["input_train.head()"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"colab":
{"base_uri":"https://localhost:8080/"},"id":"hWCdeJyl8zkA","executionInfo":
{"status":"ok","timestamp":1612079927535,"user_tz":300,"elapsed":833,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}},"outputId":"688c29b9-
0aca-4ecc-d43b-936cac648f7c"},"source":["input_train['DisbursalDate'] =
pd.to_datetime(input_train['DisbursalDate'])\r\n","input_train['MaturityDAte'] =
pd.to_datetime(input_train['MaturityDAte'])\r\n","input_train['AuthDate'] =
pd.to_datetime(input_train['AuthDate'])\r\n","input_train['DisbursalYear'] =
pd.DatetimeIndex(input_train['DisbursalDate']).year\r\n","input_train['DisbursalMon
th'] =
pd.DatetimeIndex(input_train['DisbursalDate']).month\r\n","input_train['DisbursalWe
ek'] =
pd.DatetimeIndex(input_train['DisbursalDate']).week\r\n","input_train['DisbursalDay
'] =
pd.DatetimeIndex(input_train['DisbursalDate']).day\r\n","input_train['MaturityYear'
] =
pd.DatetimeIndex(input_train['MaturityDAte']).year\r\n","input_train['MaturityMonth
'] =
pd.DatetimeIndex(input_train['MaturityDAte']).month\r\n","input_train['MaturityWeek
'] =
pd.DatetimeIndex(input_train['MaturityDAte']).week\r\n","input_train['MaturityDay']
= pd.DatetimeIndex(input_train['MaturityDAte']).day\r\n","input_train['AuthYear']
= pd.DatetimeIndex(input_train['AuthDate']).year\r\n","input_train['AuthMonth'] =
pd.DatetimeIndex(input_train['AuthDate']).month\r\n","input_train['AuthWeek'] =
pd.DatetimeIndex(input_train['AuthDate']).week\r\n","input_train['AuthDay'] =
pd.DatetimeIndex(input_train['AuthDate']).day\r\n","\r\n","input_test['DisbursalDat
e'] = pd.to_datetime(input_test['DisbursalDate'])\r\n","input_test['MaturityDAte']
= pd.to_datetime(input_test['MaturityDAte'])\r\n","input_test['AuthDate'] =
pd.to_datetime(input_test['AuthDate'])\r\n","input_test['DisbursalYear'] =
pd.DatetimeIndex(input_test['DisbursalDate']).year\r\n","input_test['DisbursalMonth
'] =
pd.DatetimeIndex(input_test['DisbursalDate']).month\r\n","input_test['DisbursalWeek
'] =
pd.DatetimeIndex(input_test['DisbursalDate']).week\r\n","input_test['DisbursalDay']
=
pd.DatetimeIndex(input_test['DisbursalDate']).day\r\n","input_test['MaturityYear']
=
pd.DatetimeIndex(input_test['MaturityDAte']).year\r\n","input_test['MaturityMonth']
=
pd.DatetimeIndex(input_test['MaturityDAte']).month\r\n","input_test['MaturityWeek']
=
pd.DatetimeIndex(input_test['MaturityDAte']).week\r\n","input_test['MaturityDay'] =
pd.DatetimeIndex(input_test['MaturityDAte']).day\r\n","input_test['AuthYear'] =
pd.DatetimeIndex(input_test['AuthDate']).year\r\n","input_test['AuthMonth']
= pd.DatetimeIndex(input_test['AuthDate']).month\r\n","input_test['AuthWeek'] =
pd.DatetimeIndex(input_test['AuthDate']).week\r\n","input_test['AuthDay'] =
pd.DatetimeIndex(input_test['AuthDate']).day"],"execution_count":5,"outputs":
[{"output_type":"stream","text":["/usr/local/lib/python3.6/dist-
packages/ipykernel_launcher.py:6: FutureWarning: weekofyear and week have been
deprecated, please use DatetimeIndex.isocalendar().week instead, which returns a
Series. To exactly reproduce the behavior of week and weekofyear and return an
Index, you may call pd.Int64Index(idx.isocalendar().week)\n","
\n","/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:10:
FutureWarning: weekofyear and week have been deprecated, please use
DatetimeIndex.isocalendar().week instead, which returns a Series. To exactly
reproduce the behavior of week and weekofyear and return an Index, you may call
pd.Int64Index(idx.isocalendar().week)\n"," # Remove the CWD from sys.path while we
load stuff.\n","/usr/local/lib/python3.6/dist-packages/ipykernel_launcher.py:14:
FutureWarning: weekofyear and week have been deprecated, please use
DatetimeIndex.isocalendar().week instead, which returns a Series. To exactly
reproduce the behavior of week and weekofyear and return an Index, you may call
pd.Int64Index(idx.isocalendar().week)\n"," \n","/usr/local/lib/python3.6/dist-
packages/ipykernel_launcher.py:22: FutureWarning: weekofyear and week have been
deprecated, please use DatetimeIndex.isocalendar().week instead, which returns a
Series. To exactly reproduce the behavior of week and weekofyear and return an
Index, you may call
pd.Int64Index(idx.isocalendar().week)\n","/usr/local/lib/python3.6/dist-
packages/ipykernel_launcher.py:26: FutureWarning: weekofyear and week have been
deprecated, please use DatetimeIndex.isocalendar().week instead, which returns a
Series. To exactly reproduce the behavior of week and weekofyear and return an
Index, you may call
pd.Int64Index(idx.isocalendar().week)\n","/usr/local/lib/python3.6/dist-
packages/ipykernel_launcher.py:30: FutureWarning: weekofyear and week have been
deprecated, please use DatetimeIndex.isocalendar().week instead, which returns a
Series. To exactly reproduce the behavior of week and weekofyear and return an
Index, you may call pd.Int64Index(idx.isocalendar().week)\n"],"name":"stderr"}]},
{"cell_type":"code","metadata":{"id":"MSDyUen68v4f","executionInfo":
{"status":"ok","timestamp":1612079931138,"user_tz":300,"elapsed":348,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}}},"source":
["input_train['AuthDiff'] = input_train['DisbursalDate'] -
input_train['AuthDate']\r\n","input_train['MaturityDiff'] =
input_train['DisbursalDate'] - input_train['MaturityDAte']\r\n","input_train=
input_train.drop('DisbursalDate',axis = 1) \r\n","input_train=
input_train.drop('MaturityDAte',axis = 1)\r\n","input_train=
input_train.drop('AuthDate',axis = 1)\r\n","\r\n","input_test['AuthDiff'] =
input_test['DisbursalDate'] -
input_test['AuthDate']\r\n","input_test['MaturityDiff'] =
input_test['DisbursalDate'] - input_test['MaturityDAte']\r\n","input_test=
input_test.drop('DisbursalDate',axis = 1) \r\n","input_test=
input_test.drop('MaturityDAte',axis = 1)\r\n","input_test=
input_test.drop('AuthDate',axis = 1)\r\n"],"execution_count":6,"outputs":[]},
{"cell_type":"code","metadata":{"id":"udO7P1DM_Nhv"},"source":
["input_train.head()"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"HS8DpZxb_c_O","executionInfo":
{"status":"ok","timestamp":1612079933768,"user_tz":300,"elapsed":379,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}}},"source":
["input_train['AuthDiff'] =
input_train['AuthDiff'].astype(int)\r\n","input_train['MaturityDiff']
=input_train['MaturityDiff'].astype(int)\r\n","\r\n","input_test['AuthDiff'] =
input_test['AuthDiff'].astype(int)\r\n","input_test['MaturityDiff']
=input_test['MaturityDiff'].astype(int)\r\n"],"execution_count":7,"outputs":[]},
{"cell_type":"code","metadata":{"id":"mXaCIW0oAGwg"},"source":
["input_train.dtypes"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"cwpU1Xb0AQL-"},"source":
["input_train.head()"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"Cz21ZayOAPu-"},"source":
["input_train.nunique()"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"8-WdG9L_AtGs","executionInfo":
{"status":"ok","timestamp":1612079936834,"user_tz":300,"elapsed":356,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}}},"source":["input_train =
input_train[ [ col for col in input_train.columns if col != 'Top-up Month' ] +
['Top-up Month'] ] "],"execution_count":8,"outputs":[]},
{"cell_type":"code","metadata":{"id":"eJ2WiRBxA30f"},"source":
["input_train.head()"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"smyHD-JuBJrx","executionInfo":
{"status":"ok","timestamp":1612079939523,"user_tz":300,"elapsed":365,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}}},"source":["input_train=
input_train.drop('ID',axis = 1)\r\n","input_train= input_train.drop('AssetID',axis
= 1)\r\n","\r\n","input_test= input_test.drop('ID',axis = 1)\r\n","input_test=
input_test.drop('AssetID',axis = 1)"],"execution_count":9,"outputs":[]},
{"cell_type":"code","metadata":{"id":"TnDHqPccBYnu"},"source":
["input_train.head()"],"execution_count":null,"outputs":[]},
{"cell_type":"code","metadata":{"id":"CcKterQbHGhW","executionInfo":
{"status":"ok","timestamp":1612079942226,"user_tz":300,"elapsed":427,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}}},"source":
["input_train['Area'] = input_train['Area'].astype(str)\r\n","input_train['City'] =
input_train['City'].astype(str)\r\n","\r\n","input_test['Area'] =
input_test['Area'].astype(str)\r\n","input_test['City'] =
input_test['City'].astype(str)"],"execution_count":10,"outputs":[]},
{"cell_type":"code","metadata":{"colab":
{"base_uri":"https://localhost:8080/"},"id":"S6XCT0vAYhfz","executionInfo":
{"status":"ok","timestamp":1612079945069,"user_tz":300,"elapsed":434,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}},"outputId":"f7d8ea72-
b223-48e7-c6af-69b5b265d7d4"},"source":["input_test['MonthlyIncome'] =
input_test['MonthlyIncome'].fillna(input_test['MonthlyIncome'].mean())\r\n","input_
test['AGE'] =
input_test['AGE'].fillna(input_test['AGE'].mean())\r\n","input_test['ZiPCODE'] =
input_test['ZiPCODE'].fillna(input_test['ZiPCODE'].mean())\r\n","input_test['Manufa
cturerID'] =
input_test['ManufacturerID'].fillna(input_test['ManufacturerID'].median())\r\n","in
put_test['SEX'] =
input_test['SEX'].fillna(\"M\")\r\n","\r\n","input_test.isna().sum()"],"execution_c
ount":11,"outputs":[{"output_type":"execute_result","data":{"text/plain":
["Frequency 0\n","InstlmentMode 0\n","LoanStatus
0\n","PaymentMode 0\n","BranchID 0\n","Area
0\n","Tenure 0\n","AssetCost 0\n","AmountFinance
0\n","DisbursalAmount 0\n","EMI 0\n","ManufacturerID
0\n","SupplierID 0\n","LTV 0\n","SEX
0\n","AGE 0\n","MonthlyIncome 0\n","City
0\n","State 0\n","ZiPCODE 0\n","DisbursalYear
0\n","DisbursalMonth 0\n","DisbursalWeek 0\n","DisbursalDay
0\n","MaturityYear 0\n","MaturityMonth 0\n","MaturityWeek
0\n","MaturityDay 0\n","AuthYear 0\n","AuthMonth
0\n","AuthWeek 0\n","AuthDay 0\n","AuthDiff
0\n","MaturityDiff 0\n","dtype: int64"]},"metadata":{"tags":
[]},"execution_count":11}]},{"cell_type":"code","metadata":{"colab":
{"base_uri":"https://localhost:8080/"},"id":"20rLmonwXUPu","executionInfo":
{"status":"ok","timestamp":1612081048433,"user_tz":300,"elapsed":435,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}},"outputId":"ae3afbbb-
a31b-4c34-d582-11faa1e84097"},"source":
["print(input_train.shape)\r\n","print(input_test.shape)\r\n","\r\n","for_encoding
=
input_train.append(input_test)\r\n","print(for_encoding.shape)"],"execution_count":
37,"outputs":[{"output_type":"stream","text":["(128043, 35)\n","(14745,
34)\n","(142788, 35)\n"],"name":"stdout"}]},{"cell_type":"code","metadata":
{"colab":{"base_uri":"https://localhost:8080/","height":610},"id":"prAUctBlbe-
K","executionInfo":
{"status":"ok","timestamp":1612081056748,"user_tz":300,"elapsed":435,"user":
{"displayName":"Gopi Krishna
Mashetty","photoUrl":"","userId":"05998669719930835056"}},"outputId":"97b8fd2f-
ed56-4311-c0d8-a89bb32c2bb2"},"source":
["for_encoding"],"execution_count":39,"outputs":
[{"output_type":"execute_result","data":{"text/html":["<div>\n","<style
scoped>\n"," .dataframe tbody tr th:only-of-type {\n"," vertical-align:
middle;\n"," }\n","\n"," .dataframe tbody tr th {\n"," vertical-align:
top;\n"," }\n","\n"," .dataframe thead th {\n"," text-align:
right;\n"," }\n","</style>\n","<table border=\"1\" class=\"dataframe\">\n","
<thead>\n"," <tr style=\"text-align: right;\">\n"," <th></th>\n","
<th>Frequency</th>\n"," <th>InstlmentMode</th>\n","
<th>LoanStatus</th>\n"," <th>PaymentMode</th>\n"," <th>BranchID</th>\n","
<th>Area</th>\n"," <th>Tenure</th>\n"," <th>AssetCost</th>\n","
<th>AmountFinance</th>\n"," <th>DisbursalAmount</th>\n","
<th>EMI</th>\n"," <th>ManufacturerID</th>\n"," <th>SupplierID</th>\n","
<th>LTV</th>\n"," <th>SEX</th>\n"," <th>AGE</th>\n","
<th>MonthlyIncome</th>\n"," <th>City</th>\n"," <th>State</th>\n","
<th>ZiPCODE</th>\n"," <th>DisbursalYear</th>\n","
<th>DisbursalMonth</th>\n"," <th>DisbursalWeek</th>\n","
<th>DisbursalDay</th>\n"," <th>MaturityYear</th>\n","
<th>MaturityMonth</th>\n"," <th>MaturityWeek</th>\n","
<th>MaturityDay</th>\n"," <th>AuthYear</th>\n"," <th>AuthMonth</th>\n","
<th>AuthWeek</th>\n"," <th>AuthDay</th>\n"," <th>AuthDiff</th>\n","
<th>MaturityDiff</th>\n"," <th>Top-up Month</th>\n"," </tr>\n","
</thead>\n"," <tbody>\n"," <tr>\n"," <th>0</th>\n","
<td>Monthly</td>\n"," <td>Arrear</td>\n"," <td>Closed</td>\n","
<td>PDC_E</td>\n"," <td>1</td>\n"," <td>RAISEN</td>\n","
<td>48</td>\n"," <td>450000</td>\n"," <td>275000.0</td>\n","
<td>275000.0</td>\n"," <td>24000.0</td>\n"," <td>1568.0</td>\n","
<td>21946</td>\n"," <td>61.11</td>\n"," <td>M</td>\n","
<td>49.00000</td>\n"," <td>35833.330000</td>\n"," <td>RAISEN</td>\n","
<td>MADHYA PRADESH</td>\n"," <td>464993.0</td>\n"," <td>2012</td>\n","
<td>2</td>\n"," <td>6</td>\n"," <td>10</td>\n"," <td>2016</td>\n","
<td>1</td>\n"," <td>2</td>\n"," <td>15</td>\n"," <td>2012</td>\n","
<td>2</td>\n"," <td>6</td>\n"," <td>10</td>\n"," <td>0</td>\n","
<td>-123984000000000000</td>\n"," <td>&gt; 48 Months</td>\n"," </tr>\n","
<tr>\n"," <th>1</th>\n"," <td>Monthly</td>\n","
<td>Advance</td>\n"," <td>Closed</td>\n"," <td>PDC</td>\n","
<td>333</td>\n"," <td>BHOPAL</td>\n"," <td>47</td>\n","
<td>485000</td>\n"," <td>350000.0</td>\n"," <td>350000.0</td>\n","
<td>10500.0</td>\n"," <td>1062.0</td>\n"," <td>34802</td>\n","
<td>70.00</td>\n"," <td>M</td>\n"," <td>23.00000</td>\n","
<td>666.670000</td>\n"," <td>SEHORE</td>\n"," <td>MADHYA
PRADESH</td>\n"," <td>466001.0</td>\n"," <td>2012</td>\n","
<td>3</td>\n"," <td>13</td>\n"," <td>31</td>\n"," <td>2016</td>\n","
<td>2</td>\n"," <td>7</td>\n"," <td>15</td>\n"," <td>2012</td>\n","
<td>3</td>\n"," <td>13</td>\n"," <td>31</td>\n"," <td>0</td>\n","
<td>-122342400000000000</td>\n"," <td>No Top-up Service</td>\n","
</tr>\n"," <tr>\n"," <th>2</th>\n"," <td>Quatrly</td>\n","
<td>Arrear</td>\n"," <td>Active</td>\n"," <td>Direct Debit</td>\n","
<td>1</td>\n"," <td>BHOPAL</td>\n"," <td>68</td>\n","
<td>690000</td>\n"," <td>519728.0</td>\n"," <td>519728.0</td>\n","
<td>38300.0</td>\n"," <td>1060.0</td>\n"," <td>127335</td>\n","
<td>69.77</td>\n"," <td>M</td>\n"," <td>39.00000</td>\n","
<td>45257.000000</td>\n"," <td>BHOPAL</td>\n"," <td>MADHYA
PRADESH</td>\n"," <td>462030.0</td>\n"," <td>2017</td>\n","
<td>6</td>\n"," <td>24</td>\n"," <td>17</td>\n"," <td>2023</td>\n","
<td>2</td>\n"," <td>6</td>\n"," <td>10</td>\n"," <td>2017</td>\n","
<td>6</td>\n"," <td>24</td>\n"," <td>17</td>\n"," <td>0</td>\n","
<td>-178329600000000000</td>\n"," <td>12-18 Months</td>\n"," </tr>\n","
<tr>\n"," <th>3</th>\n"," <td>Monthly</td>\n","
<td>Advance</td>\n"," <td>Closed</td>\n"," <td>Billed</td>\n","
<td>125</td>\n"," <td>GUNA</td>\n"," <td>48</td>\n","
<td>480000</td>\n"," <td>400000.0</td>\n"," <td>400000.0</td>\n","
<td>11600.0</td>\n"," <td>1060.0</td>\n"," <td>25094</td>\n","
<td>80.92</td>\n"," <td>M</td>\n"," <td>24.00000</td>\n","
<td>20833.330000</td>\n"," <td>ASHOK NAGAR</td>\n"," <td>MADHYA
PRADESH</td>\n"," <td>473335.0</td>\n"," <td>2013</td>\n","
<td>11</td>\n"," <td>48</td>\n"," <td>29</td>\n","
<td>2017</td>\n"," <td>11</td>\n"," <td>45</td>\n","
<td>10</td>\n"," <td>2013</td>\n"," <td>11</td>\n","
<td>48</td>\n"," <td>29</td>\n"," <td>0</td>\n"," <td>-
124588800000000000</td>\n"," <td>&gt; 48 Months</td>\n"," </tr>\n","
<tr>\n"," <th>4</th>\n"," <td>Monthly</td>\n"," <td>Arrear</td>\n","
<td>Closed</td>\n"," <td>Billed</td>\n"," <td>152</td>\n","
<td>BILASPUR</td>\n"," <td>44</td>\n"," <td>619265</td>\n","
<td>440000.0</td>\n"," <td>440000.0</td>\n"," <td>15000.0</td>\n","
<td>1046.0</td>\n"," <td>21853</td>\n"," <td>71.05</td>\n","
<td>M</td>\n"," <td>56.00000</td>\n"," <td>27313.670000</td>\n","
<td>BILASPUR</td>\n"," <td>CHATTISGARH</td>\n"," <td>495442.0</td>\n","
<td>2011</td>\n"," <td>12</td>\n"," <td>49</td>\n"," <td>8</td>\n","
<td>2015</td>\n"," <td>7</td>\n"," <td>27</td>\n"," <td>5</td>\n","
<td>2011</td>\n"," <td>12</td>\n"," <td>49</td>\n"," <td>8</td>\n","
<td>0</td>\n"," <td>-112752000000000000</td>\n"," <td>36-48
Months</td>\n"," </tr>\n"," <tr>\n"," <th>...</th>\n","
<td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n","
<td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n","
<td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n","
<td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n","
<td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n","
<td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n","
<td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n"," <td>...</td>\n

You might also like