- Install Python 3.10 Install Python 3.10.
- Install the dependencies (using pip)
pip3 install -r requirements.txt
. - Make sure you are in the same directory as app.py, then run
python3 app.py
. - Navigate to http://127.0.0.1:8050/ on your web browser.
- To make it work, ensure that
final_df.csv
is located in theorders_data_clean
folder. - Ensure that there's at least one month of data in the
orders_data_dump
folder. You can add or delete contents from theorders_data_dump
folder, that folder is for the raw data that hasn't been transformed. - Once executed, the program will generate both
clean.csv
andfinal_df.csv
in theorders_data_clean
folder. - DO NOT DELETE
final_df.csv
as this file is the primary source from which the dashboard loads the entire dataset. clean.csv
contains data that hasn't been transformed, whereasfinal_df.csv
contains the transformed data.- Whenever new data is uploaded in the update_data section of the antibiotic orders, both
clean.csv
andfinal_df.csv
will be updated. - To remove or edit data from the dashboard, make deletions or edits in the
orders_data_dump
folder. This folder contains all the data that has been uploaded to the dashboard. Run the dashboard. After the dashboard starts, click "refresh order data." It will process all the files in theorders_data_dump
folder, clean them, and then load them onto the dashboard. - If you want to append data, there is no need to delete
clean.csv
. You can use the update_data section to add more data. There, you can upload multiple new files. - Another way to add data is to directly place it in the
orders_data_dump
folder and click "refresh order data".
- To ensure functionality, make sure you have at least one month's worth of resistance data in the
resistance_data_dump
folder. - This process will generate
resistance_df.csv
(the combined resistance data),resistance_count_df.csv
(the cleaned and transformed data), andresistance_col_df.csv
(for antibiogram). - The visualization will display all the contents from the
resistance_data_dump
folder. You can add or remove files in this location. - To remove or edit data, navigate to the
resistance_data_dump
folder. This folder contains all the data uploaded to the dashboard. Make your edits or deletions within this folder. After edits or deletions, run the dashboard. After the dashboard starts, click "refresh susceptibility data." It will process all the files in theresistance_data_dump
folder, clean them, and then load them onto the dashboard. - To add a new dataset, visit the update_data page and navigate to the update_data section for resistance. There, you can upload multiple new files.
- Another way to add data is to directly place it in the
resistance_data_dump
folder and click "refresh susceptibility data".