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)