{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"20Lec02.ipynb","provenance":[],"authorship_tag":"ABX9TyN9Obppgu+Ib1EF5Dps5F1F"},"kernelspec":{"name":"python3","display_name":"Python 3"}},"cells":[{"cell_type":"code","metadata":{"id":"J42xMV3LZD2R","executionInfo":{"status":"ok","timestamp":1601475726224,"user_tz":-540,"elapsed":717,"user":{"displayName":"Ryuichiro Ishikawa","photoUrl":"https://lh3.googleusercontent.com/a-/AOh14GjJgT-uFW-zwu8fGNU9Z3XGuqsdW1w5M4IwCtffmA=s64","userId":"13189887461029207273"}},"outputId":"2a81f79a-fea4-4031-ac2f-25a3db4f25b5","colab":{"base_uri":"https://localhost:8080/","height":34}},"source":["from google.colab import drive\n","drive.mount('/content/drive')"],"execution_count":4,"outputs":[{"output_type":"stream","text":["Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount(\"/content/drive\", force_remount=True).\n"],"name":"stdout"}]},{"cell_type":"code","metadata":{"id":"3qN_rL_tYti9","executionInfo":{"status":"ok","timestamp":1601475981318,"user_tz":-540,"elapsed":1000,"user":{"displayName":"Ryuichiro Ishikawa","photoUrl":"https://lh3.googleusercontent.com/a-/AOh14GjJgT-uFW-zwu8fGNU9Z3XGuqsdW1w5M4IwCtffmA=s64","userId":"13189887461029207273"}},"outputId":"5db32698-d72e-460a-c136-40b71e424385","colab":{"base_uri":"https://localhost:8080/","height":224}},"source":["import numpy as np\n","import scipy as sp\n","import pandas as pd\n","from pandas import Series, DataFrame\n","import matplotlib as mp\n","import seaborn as sns\n","\n","import matplotlib.pyplot as plt\n","\n","%matplotlib inline\n","\n","import requests\n","import io\n","\n","wine_data = pd.read_csv('/content/drive/My Drive/Colab Notebooks/02churn.csv')\n","wine_data.head()\n","\n"],"execution_count":13,"outputs":[{"output_type":"execute_result","data":{"text/html":["
\n","\n","\n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n"," \n","
IDCOLLEGEINCOMEOVERAGELEFTOVERHOUSEHANDSET_PRICEOVER_15MINS_CALLS_PER_MONTHAVERAGE_CALL_DURATIONREPORTED_SATISFACTIONREPORTED_USAGE_LEVELLEAVE
0sample_01zero319530631337816104unsatlittleSTAY
1sample_02one3614701380058624406unsatlittleSTAY
2sample_03one2727323003050492011615unsatvery_littleSTAY
3sample_04zero120070383378823578032unsatvery_highLEAVE
4sample_05one2921520885224784241211very_unsatlittleSTAY
\n","
"],"text/plain":[" ID COLLEGE INCOME ... REPORTED_SATISFACTION REPORTED_USAGE_LEVEL LEAVE\n","0 sample_01 zero 31953 ... unsat little STAY\n","1 sample_02 one 36147 ... unsat little STAY\n","2 sample_03 one 27273 ... unsat very_little STAY\n","3 sample_04 zero 120070 ... unsat very_high LEAVE\n","4 sample_05 one 29215 ... very_unsat little STAY\n","\n","[5 rows x 12 columns]"]},"metadata":{"tags":[]},"execution_count":13}]},{"cell_type":"code","metadata":{"id":"M2fm8-7PZCqA"},"source":[""],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"87jmOwGQY1qD"},"source":[""],"execution_count":null,"outputs":[]}]}