{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Case 02\n", "\n", "The following file presents mean data by municipality. The target is crime per 1000 population (crime1000hab2018). In order to explain it, several features are presented.\n", "\n", "1. Create regression model, identifying the best solution\n", "\n", "2. Categorize the target data (bad > mean, good < mean). Use classification algorthms. \n", " \n", "\n" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "crime1000hab2018 float64\n", "EnsinoSuperior2011 float64\n", "CentroEmprego2019 float64\n", "PercentageMulheres2011 float64\n", "poderCompraPercapita2017 float64\n", "Analfpor1000 float64\n", "Densidade2019 float64\n", "DespsaCultura2012 float64\n", "dtype: object" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import pandas as pd\n", "import numpy as np\n", "\n", "URL=\"https://github.com/masterfloss/data/blob/main/crime.xlsx?raw=true\"\n", "df=pd.read_excel(URL)\n", "df.dtypes" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 1. Regression" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "#" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "#" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 2. Classification" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "#" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "#" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.0" } }, "nbformat": 4, "nbformat_minor": 2 }