Skip to content

QuentinNav/Python_For_Data_Analysis_Drug_Consumption

Repository files navigation

Python for Data Analysis - Drug consumption (quantified) Data Set

ESILV S1 2021–2022

alt text

Table of Contents

  1. Study and Conclusions
  2. Jupyter Notebook
  3. How To Use the Flask API
  4. Author Info

Study and Conclusions

The goal of this project was to use the python skills acquired during this semester to study and analyse a real dataset.

Our dataset was based on a drug consumption study which contains records for 1885 respondents. For each respondent 12 attributes are known.

After cleaning the data and make some visualizations. We have decided to focus on illegal drugs and especially on how the various features had an impact on a specific classification problem which was Can we find a relation between the personality measurements and the use of illegal drug ?

We succeed to set up various machine learning problem which made it possible to predict with an average 80% accuracy if a respondents is probably drugged.

  

Back To The Top


Jupyter Notebook

alt text

  

The Project_python_for_data_analysis.ipynb contains all the code in python of the following sections

  • Data Cleaning
  • Data Visualization
  • Machine Learning Modeling

However, you need to install the following librairies :

  • Required librairies
    • numpy
    • pandas
    • matplotlib
    • geopandas
    • seaborn
    • folium
    • random
    • tensorflow
    • mapping_data import
    • pywaffle
    • IPython.display
    • sklearn
    • tensorflow
    • warnings

use the following command in your Anaconda console to download the required librairies

   pip install "library name"

Back To The Top


How To Use the Flask API

alt text

  

  • Installation

use the following code in your Anaconda console

   pip install flask
  • Execution

execute run.py file Go to http://localhost:5000 on your web browser

  

Back To The Top


Authors Info

Back To The Top

About

Project : data analysis of a dataset about drug consumption

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •