app_streamlit package
Subpackages
- analyse package
- classification_values module
- utils module
average_and_total_comments_per_contributor()best_recipe_filter_time()calculate_negative_points_nutri_score()calculate_positive_points_nutri_score()cat_minutes()count_contributors_by_recipe_range_with_bins()count_recipes_season()get_insight_low_ranking()get_top_ingredients2()get_top_tags()metrics_main_contributor()nutri_score()top_commented_recipes()top_commented_recipes_by_contributors()top_recipes()top_recipes_user()trendy_ingredients_by_seasons()unique_ingr()user_recipes()visualise_low_rank_insight()visualise_recipe_season()
- load_data package
Submodules
contributors_page module
This page is dedicated to the page contributor on streamlit, all graphs rely on the contributors’ performances
- app_streamlit.contributors_page.display_contributors_page(df, df_ingr_map)
- app_streamlit.contributors_page.my_metric(label, value, bg_color, icon='fas fa-asterisk')
main_app module
- app_streamlit.main_app.display_contributors_page_wrapper()
- app_streamlit.main_app.display_profile_page_wrapper()
- app_streamlit.main_app.display_recipes_page_wrapper()
- app_streamlit.main_app.main()
Display the main page of the web app
profile_page module
- app_streamlit.profile_page.display_profile_page(clean_df, user_id=47892)
Display the profile page content.
- Args:
clean_df (pd.DataFrame): DataFrame containing recipe data. user_id (int, optional): The ID of the user. Default is 47892.
- Returns:
None
- app_streamlit.profile_page.my_metric(label, value, bg_color, icon='fas fa-asterisk')
recipes_page module
- app_streamlit.recipes_page.display_recipes_page(clean_df, df_ingr_map)
Display the recipes page content.