0% found this document useful (0 votes)
16 views2 pages

Data Preprocessing for Loan Analysis

The document outlines the steps for data preprocessing in a loan e-signing project using a dataset from Kaggle. It includes importing necessary libraries, loading the dataset, installing the Kaggle API, and preparing the data for analysis by adjusting data types. The document also mentions unzipping a dataset and setting display options for better visibility of data columns.

Uploaded by

lokesh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

Data Preprocessing for Loan Analysis

The document outlines the steps for data preprocessing in a loan e-signing project using a dataset from Kaggle. It includes importing necessary libraries, loading the dataset, installing the Kaggle API, and preparing the data for analysis by adjusting data types. The document also mentions unzipping a dataset and setting display options for better visibility of data columns.

Uploaded by

lokesh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Part 1: Data Preprocessing

importing the libraries and dataset

ataset Link :
[Link]
=financial_data.csv

import numpy as np
import pandas as pd
import [Link] as plt
import seaborn as sns
import kagglehub

dataset = pd.read_csv(’/content/[Link]’)
[Link]()

# Installing Kaggle API


! pip install -q kaggle

# upload kaggle API key to colab notebook

# Make directory named kaggle and copy [Link] file there


! mkdir ~/.kaggle
! cp [Link] ~/.kaggle/

# disbale API key


! chmod 600 /root/.kaggle/[Link]

# unzipping the dataset


! unzip -q /content/[Link]

pd.set_option(’display.max_columns’, None)
[Link]()

cols = ["pay_schedule_monthly", "pay_schedule_semi-monthly", "pay_schedule_weekly"]


dataset[cols] = dataset[cols].astype(int)

You might also like