Skip to content

mandar-gite/glycemic_index_visualisation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of Glycemic Index Visualisation by Mandar Gite

Glycemic Index Visualisation

The glycemic_index_analysis.py script contains the following functionality:

Accesses data from a webpage using Pandas.

  • Cleans the data by resetting the index, deleting rows without glycemic index values, and removing the first and last rows of the dataframe.
  • Creates several plots using Matplotlib and Seaborn:
    • Bar plot of the top 10 foods with the highest glycemic index values.
    • Bar plot of the bottom 10 foods with the lowest glycemic index values.
    • Scatter plot of the glycemic index vs. glycemic load for all foods.
    • Bar plot of the top and bottom two fruits by glycemic index.

Requirements:


Installation

From Terminal

Clone this repository into a folder of your choice:

git clone github.com/generallynonsensical/glycemic_index_visualisation

then

cd glycemic_index_visualisation

Create a Python Virtual Environment in the folder:

python3 -m venv .venv

then

Source .venv/bin/activate

Install Pandas Seaborn Matplotlib and Jupyter using pip:

pip install pandas seaborn matplotlib notebook


Usage

From terminal, in project directory, run:

jupiter notebook

Jupyter Notebook is then opened in browser at http://localhost:8888

Contributing

Feel free to fork this repository and submit pull requests if you have any suggestions or improvements.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published