<jupyter_start><jupyter_text>Here's some starter code to grab the dataFile --> Make a copy --> rename the notebook  Link to Documentation: https://www.brewerydb.com/developers/docs*** api_setup.pyThere are two functions in api_setup. get_data will retrieve a request from the brewerydb api. navigate_json will allow you to work through json files more easily and will display the query needed to grab your data get_data(endpoint,page,key)    endpoint: (beers), breweries, categories, ingredients, etc      page: (1)      key: (provided)   navigate_json(json_data)    remember to type 'stop' to end the program before you run any other cell*****The number of pages can vary depending on what you're trying to query, so you can create a for loop to parse through all the results.**<jupyter_code>import api_setup as ap
import pandas as pd 
# As is endpoint = "beers", page = '1"'
data = ap.get_data(endpoint="styles")
data<jupyter_output><empty_output><jupyter_text>Remember to use len() to navigate lists and .keys() to navigate dictionaries<jupyter_code>data.keys()
len(data['data'])
ap.navigate_json(data)
#Major_Style
styles_data = []
for styles in data['data']:
    major_style = (styles['category']['name'])
    #print(major_style)
    
    if major_style not in styles_data:
        styles_data.append(major_style)

styles_data
#Sub_Style List
sub_style_data= []
for styles in data['data']:
        sub_style_data.append(styles['name'])
sub_style_data<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09831649831649832, 'fraction_numerical': 0.0013468013468013469, 'mean_word_length': 5.11522633744856, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '31689', 'license': 'MIT', 'n_tokens_mistral': 452, 'n_tokens_neox': 441, 'n_words': 159, 'path': 'archive/Starter_Code.ipynb', 'repo_name': 'sponre01/project-one', 'size': '1485'}