Python-Module03-Case Study02
Python-Module03-Case Study02
1. Business challenge/requirement
Bank of Portugal runs marketing campaign to offer loans to clients. Loan is
offered to only clients with particular professions. List of successful campaigns (with
client data) is given in attached dataset. You have to come up with program which reads
the file and builds a set of unique profession list and given input profession of client –
system tells whether client is eligible to be approached for marketing campaign.
Answer:
import pandas as pd
import numpy as np
data = open("./bank-data.csv",'rb')
flag = 1
while(flag==1):
job_input = input("Please enter your job : ") # enter jon input till user enter END
flag = 0
******