As part of our project for Python for Data Analysis, we decided to use the drug-consumption-data.data dataset for implementing Machine Learning. After analysing our dataset and links between variables through graphs and correlations, we decided to implement a target variable to predict whether a user is or may become a drug addict.
Drug-analysis_Matthias_Picard-Séverin_LEFEBURE_ESILV_Project.ipynb is a presentation of our project: the ins and outs, our methodology, the results of our model and the limits of our analysis.
Our Streamlit contains all the graphs that we created (data analysis and model) and their interpretation.
The notebook contains all the codes that generated our graphs and our results.
In the command prompt, go to your folder and run the following command:
pip install -r requirement.txt
This will do all the necessary pip installations so that you can run the notebook or the website.
In the command prompt, go to the Streamlit folder and run the following command:
python -m streamlit run menu.py
Just typing streamlit run menu.py can work but the above one is sure to work.
Your default browser will then open the website locally on your device. We experienced some issues while executing the website on another computer: the datasets and the graph linking gender and drugs in the bivariate analysis were not correctly displayed.