{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# TU257 - Assignment 1\n", "\n", "#### Student 1: Guilherme\n", "#### Student 2: Lohana Azevedo Rodrigues - D24126847 - (TU257)\n", "#### Student 3: Rafael\n", "\n", "#### Group Num= 3\n", "#### Problem Set= 1 \n", "\n", "#### **Portuguese Banking Marking Campaign -** The data set is related to a direct marketing campaign for a Portuguese banking institution. The bank conducts marketing campaigns and uses their call center to contact their customers using phone calls.\n", "#### ***GOAL***: The purpose of this project is to identify customers who are most likely to subscribe to a term deposit account based on previous marketing campaigns.\n", "#### https://archive.ics.uci.edu/ml/datasets/Bank+Marketing" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "________________________________________________________" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Modules" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Step 1 - Importing the Data Set" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | age | \n", "job | \n", "marital | \n", "education | \n", "default | \n", "housing | \n", "loan | \n", "contact | \n", "month | \n", "day_of_week | \n", "... | \n", "campaign | \n", "pdays | \n", "previous | \n", "poutcome | \n", "emp.var.rate | \n", "cons.price.idx | \n", "cons.conf.idx | \n", "euribor3m | \n", "nr.employed | \n", "y | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "30 | \n", "blue-collar | \n", "married | \n", "basic.9y | \n", "no | \n", "yes | \n", "no | \n", "cellular | \n", "may | \n", "fri | \n", "... | \n", "2 | \n", "999 | \n", "0 | \n", "nonexistent | \n", "-1.8 | \n", "92.893 | \n", "-46.2 | \n", "1.313 | \n", "5099.1 | \n", "no | \n", "
1 | \n", "39 | \n", "services | \n", "single | \n", "high.school | \n", "no | \n", "no | \n", "no | \n", "telephone | \n", "may | \n", "fri | \n", "... | \n", "4 | \n", "999 | \n", "0 | \n", "nonexistent | \n", "1.1 | \n", "93.994 | \n", "-36.4 | \n", "4.855 | \n", "5191.0 | \n", "no | \n", "
2 | \n", "25 | \n", "services | \n", "married | \n", "high.school | \n", "no | \n", "yes | \n", "no | \n", "telephone | \n", "jun | \n", "wed | \n", "... | \n", "1 | \n", "999 | \n", "0 | \n", "nonexistent | \n", "1.4 | \n", "94.465 | \n", "-41.8 | \n", "4.962 | \n", "5228.1 | \n", "no | \n", "
3 | \n", "38 | \n", "services | \n", "married | \n", "basic.9y | \n", "no | \n", "unknown | \n", "unknown | \n", "telephone | \n", "jun | \n", "fri | \n", "... | \n", "3 | \n", "999 | \n", "0 | \n", "nonexistent | \n", "1.4 | \n", "94.465 | \n", "-41.8 | \n", "4.959 | \n", "5228.1 | \n", "no | \n", "
4 | \n", "47 | \n", "admin. | \n", "married | \n", "university.degree | \n", "no | \n", "yes | \n", "no | \n", "cellular | \n", "nov | \n", "mon | \n", "... | \n", "1 | \n", "999 | \n", "0 | \n", "nonexistent | \n", "-0.1 | \n", "93.200 | \n", "-42.0 | \n", "4.191 | \n", "5195.8 | \n", "no | \n", "
5 rows × 21 columns
\n", "