<jupyter_start><jupyter_text>Category Statistics<jupyter_code># Get the db connection<jupyter_output><empty_output><jupyter_text>Category Bar PlotNote that there is overlap between categories (e.g. a single business can have multiple primary adn secondary categories). We expect the sum of all categories to exceed the number of businesses.<jupyter_code># Make barplot of the number of businesses in all primary categories<jupyter_output><empty_output><jupyter_text>Star Ratings across all Categories (all users and elite users)<jupyter_code># Barplot of the star ratings for all categories
# Subplots (2,1) normal users / elite users<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.06325301204819277, 'fraction_numerical': 0.0030120481927710845, 'mean_word_length': 7.417721518987341, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '647539', 'license': 'MIT', 'n_tokens_mistral': 189, 'n_tokens_neox': 186, 'n_words': 72, 'path': 'notebooks/tsl-02-category-stats.ipynb', 'repo_name': 'tlappas/Yelp-Ratings', 'size': '664'}