Skip to content

FP-byte/MADS-DAV-FP

Repository files navigation

Visualisaties van de cursus Data Analysis & Visualisation - Master Data science

This is the repository for the project within Master of Applied Data Science course "Data Analysis & Visualisation".

Setup the virtual environment

  1. First, make sure you have python >= 3.11. You can check the version with python --version.
  2. Make sure rye is there. Alternatively, use pip to install your environment.
    • check if it is installed by executing rye --help
  3. Install the dependecies: navigate to the MADS-DAV folder where the pyproject.toml is located
  4. run rye sync.

Run the visualisations

Download a chat from Whatsapp and put it in the data/processed folder. In config.toml change the filename settings accordingly. input = csv = should be something like :"whatsapp-XXX-XXX.csv" current = should be something like :"whatsapp-XXX-XXX.parq"

source .venv/bin/activate

For Windows:

source .venv/Scripts/activate

This will activate your virtual environment. You can check which python is being used by running:

which python

After this, you can run the visualization with the following command, indicating the week number for the visualisation you want to see (number 1-5):

visualizer --week <nr>
visualizer --all  # to run all the visualizations

Run the dashboard:

Start your environment as described above then run:

cd dashboards # cd-ing into the correct folder
streamlit run dashboard_1.py # executing the script

Open the dashboard

If you run this on a VM, VScode should automatically forward your port on :8501. You can see this under the tab Ports, next to the tab for Terminal.

Locally, you can open http://localhost:8501/ and you should see your dashboard!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published