100% found this document useful (1 vote)
4K views48 pages

Ip Project On Credit Card Analysis

The document describes a credit card data analysis project that analyzes customer data from 2021 and 2022. The project allows the user to choose the year of data and type of analysis (e.g. by age, gender, income). For each analysis selected, it displays the data in a table and graph. The goal is to highlight contrasts in customer data over the two years based on various criteria.

Uploaded by

shikhaashish1587
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
100% found this document useful (1 vote)
4K views48 pages

Ip Project On Credit Card Analysis

The document describes a credit card data analysis project that analyzes customer data from 2021 and 2022. The project allows the user to choose the year of data and type of analysis (e.g. by age, gender, income). For each analysis selected, it displays the data in a table and graph. The goal is to highlight contrasts in customer data over the two years based on various criteria.

Uploaded by

shikhaashish1587
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
You are on page 1/ 48

CONTENT

Series no Description
1. Introduction to Project
2. Objective of the project
3. Scope of the project
4. Hadware and software
5. System design
6. Source code
7. output
8. Conclusion
9. Bibliography
Python is a high-level, general-purpose
programming language. Its
Design philosophy emphasizes code
readability with the use
Of significant indentation.
Pandas are an open-source library that is made
mainly for working with
Relational or labeled data both easily and
intuitively. It provides various
Data structures and operations for
manipulating numerical data and
Time series. This library is built on top of the
NumPy library. Pandas are
Fast and it has high performance &
productivity for users.
Credit card data analysis is a user-friendly
program that helps the user
to keep the track on the changes made
by credit card user, it not only
Shows their databases but also highlights the
contrast between different data with the
help of graph which again is an innovative
way to show disparities to the user.
In my quest to carry out the above-
mentioned task, I took help from an
interesting dataset on internet and created
my own database. The dataset consists of 15
customers mentioning their age, gender,
salary, credit card limit, credit card category,
etc. There are nearly 10 features.
Data analytics is a process through which
data is cleaned analyses and modeled
using tools. This data is then used to
derive insights. The insights are then used
for business related decision-making
purposes. As companies are becoming
more tech-driven and fast-paced now, data
analysis professional is already playing an
increasingly crucial role in businesses. Both
start-ups and tech giants in India are adding
data analysts to their workforce who are able
of recording, analyzing and dissecting data
to drive efficient decision-making. The scope
of project Credit card Data Analysis is to
show contrast in data of customers in 2
years based on various criteria.
I. OPERATING SYSTEM: WINDOWS 7 AND
ABOVE
II. PROCESSOR: PENTIUM (ANY) OR AMD
ATHALON (3800+- 4200+ DUALCORE)
III. MOTHERBOARD: 1.845 OR 915,995
FOR PENTIUM 0R MSI K9MM-
VIAK8M800+8237R PLUS, CHIPSET FOR
AMD ATHALON IV.
IV. RAM: 512MB+
V. Hard disk: SATA 40 GB OR ABOVE
VI. CD/DVD r/w multi drive combo: (If
back up required)
VII. FLOPPY DRIVE 1.44 MB: (If Backup
required)
VIII. MONITOR 14.1 or 15 -17 inch
IX. Key board and mouse
X. Printer: (if print is required – [Hard
copy])

Software Requirement
I. Windows OS
II. Python
System Design Cycle The systems
development life cycle is project
management technique that divides
complex projects into smaller, more easily
managed segments or phases. Segmenting
projects allows managers to verify the
successful completion of project phases
before allocating resources to Subsequent
phases. Software development projects
typically include initiation, planning, design,
development, testing, implementation, and
maintenance phases. However, the phases
may be divided differently depending on
the organization involved. For example,
initial project activities might be
designated as request, requirements-
definition, and planning phases, or
initiation, concept-development, and
planning phases. End users of the system
under development should be involved in
checking the output of each phase to ensure
the system is being built to deliver the
needed functionality.
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

print('Cerdit Card Analysis for year 2021 and


2022')
print('Choose the year')
print('1. 2021')
print('2. 2022')

choice = int(input('Enter your choice'))

if(choice == 1):
print('\n Showing Data for 2021')
print('Choose the data')
print('1. Age wise analysis ')
print('2. Gender wise analysis')
print('3. Education level based analysis')
print('4. Income category based analysis')
print('5. Card wise analysis')
for a in range(5):
option=int(input('Enter your choice'))
print('')
if option==1:
print('Showing Data Analysis Based on
Age:\n')

df=pd.read_csv("C:/Users/Hp/Pictures/2021 Age
anaylsis.csv")
print(df)
print('')
print("Graph")
Age
=(40,45,39,35,51,31,59,43,46,27,56,58,29,26)

Transaction_Amount=(1144,1291,1887,1171,816
,1088,1330,1538,1350,1201,1314,1539,1311,126
5)
plt.title("Age vs Transaction Amount
Graph")

plt.barh(Age,Transaction_Amount,color=['red','y
ellow','green','blue','orange','violet','white',

'cyan','pink','darkgreen','darkblue','olive','yellowg
reen','darkolivegreen','lawngreen'])
plt.xlabel("Age")
plt.ylabel("Transaction_Amount")
plt.grid(True)
plt.show()
if option == 2:
print('Showing Data Analysis Based on
Gender')

df=pd.read_csv("C:/Users/Hp/Pictures/2021Gen
der analysis.csv")
print(df)
print('')
print('Graph')
Gender=['Male','Female']
no_of_users=[8,7]
plt.title("Male vs Female Credit Card
Users")

plt.bar(Gender,no_of_users,color=['violet','darkb
lue'])
plt.xlabel("Gender")
plt.ylabel("Nn of Users")
plt.show()
if option == 3:
print('Showing Education Level Based
Data')

df=pd.read_csv("C:/Users/Hp/Pictures/2021
edulvl.csv")
print(df)
print('')
print('Graph')

education_level=['College','Graduate','Post-
Graduate','High School','Doctorate']
number=[1,5,3,3,3]
plt.title('Eduction Level')

plt.bar(education_level,number,color=['red','yell
ow','blue','green','pink',])
plt.xlabel('Education level')
plt.ylabel('No of Users')
plt.show()
if option == 4:
print('Showing Data Based on Income
Category')

df=pd.read_csv("C:/Users/Hp/Pictures/2021incm
category.csv")
print(df)
print('')
print('Graph')
income_category=['$40k-$60k','$60k-
$80k','$60k-$120k']
number=[5,6,4]
plt.title('Income Based Credit Card Users')
plt.bar(income_category,number,color=['gold','sil
ver','red'])
plt.xlabel('Income category')
plt.ylabel('No of Users')
plt.show()
if option == 5:
print('Showing data based on type of card
users')

df=pd.read_csv("C:/Users/Hp/Pictures/2021card
based.csv")
print(df)
print('')
print('Graph')
card_category=['blue','gold','silver']
number=[9,3,3]
plt.title('Card Based Credit Card Users')

plt.bar(card_category,number,color=['blue','gold'
,'silver'])
plt.xlabel('Type of Card')
plt.ylabel('No of Users')
plt.show()

elif (choice == 2 ):
print('\n Showing Data for 2021')
print('Choose the data:')
print('1. Age wise analysis ')
print('2. Gender wise analysis')
print('3. Education level based analysis')
print('4. Income category based analysis')
print('5. Card wise analysis')
for a in range(5):
option=int(input('Enter your choice'))
print('')
for a in range(5):
option=int(input('Enter your choice'))
print('')
if option==1:
print('Showing Data Analysis Based on
Age:\n')

df=pd.read_csv("C:/Users/Hp/Pictures/2022 Age
anaylsis.csv")
print(df)
print('')
print("Graph")
Age
=(35,57,44,48,41,61,45,62,41,47,54,41,59,63)
Transaction_Amount=(1570,1348,1671,1028,133
6,1207,1178,692,931,1126,1110,1051,1197,1904
,1265)
plt.title("Age vs Transaction Amount
Graph")

plt.barh(Age,Transaction_Amount,color=['red','y
ellow','green','blue','orange','violet','white',

'cyan','pink','darkgreen','darkblue','olive','yellowg
reen','darkolivegreen','lawngreen'])
plt.xlabel("Age")
plt.ylabel("Transaction_Amount")
plt.grid(True)
plt.show()
if option == 2:
print('Showing Data Analysis Based on
Gender')

df=pd.read_csv("C:/Users/Hp/Pictures/2022Gen
der analysis.csv")
print(df)
print('')
print('Graph')
Gender=['Male','Female']
no_of_users=[10,5]
plt.title("Male vs Female Credit Card
Users")

plt.bar(Gender,no_of_users,color=['violet','darkb
lue'])
plt.xlabel("Gender")
plt.ylabel("Nn of Users")
plt.show()
if option == 3:
print('Showing Education Level Based
Data')

df=pd.read_csv("C:/Users/Hp/Pictures/2022
education based.csv")
print(df)
print('')
print('Graph')

education_level=['College','Graduate','Post-
Graduate','High School','Doctorate']
number=[3,5,1,4,2]
plt.title('Eduction Level')
plt.bar(education_level,number,color=['red','yell
ow','blue','green','pink',])
plt.xlabel('Education level')
plt.ylabel('No of Users')
plt.show()
if option == 4:
print('Showing Data Based on Income
Category')

df=pd.read_csv("C:/Users/Hp/Pictures/2022incm
based.csv")
print(df)
print('')
print('Graph')
income_category['$40k-$60k','$60k-
$80k','$60k-$120k']
number=[5,4,6]
plt.title('Income Based Credit Card Users')

plt.bar(income_category,number,color=['gold','sil
ver','red'])
plt.xlabel('Income category')
plt.ylabel('No of Users')
plt.show()

if option == 5:
print('Showing data based on type of card
users')

df=pd.read_csv("C:/Users/Hp/Pictures/2022card
based.csv")
print(df)
print('')
print('Graph')
card_category['blue','gold','silver']
number=[8,3,4]
plt.title('Card Based Credit Card Users')

plt.bar(card_category,number,color=['blue','gold'
,'silver'])
plt.xlabel('Type of Card')
plt.ylabel('No of Users')
plt.show()

else:
print('\n Invalid Input, \nPlease enter a valid
number')
When the input is 1:
When the input is 2:
The project tends to give the comparison
of various credit card users on the bases of
their age, gender, education qualification,
income category and type of card. It also
highlights the difference in data between
two consecutive years, 2021 and 2022. It is
made in a user-friendly way so that the user
is able to access the information easily.
Books referred:

Links used:

Web Books referred:


● INFORMATICS PRATICES -- By Sumita
Arora
● The Python book by Anil Kushwaha
● let us Python by Yashavant and Aditya
Kanetkar
● Think Python by Allen B. Downey

Links used:
● https://www.w3schools.com/

. https://www.studocu.com/in/document/st-
xaviers-college-ranchi/artificial-
intelligence/pranav-investigatory-
project/43867182
Web applications referred:

● Learn python
● Learn python programming offline
● Python Tutorial
● Python 3 Tutorials
Applications referred:

You might also like