fire_data/api_data.py
def load_data_to_dataframe(
    api_url: str = "https://opendata.arcgis.com/datasets/8b90b56df08a4bd5bc1b868396873b61_11.geojson",
) -> pd.DataFrame:
    """Converts the propertry data into a DataFrame.

    Args:
        api_url: The url to use for the download. Defaults to
            "https://opendata.arcgis.com/datasets/8b90b56df08a4bd5bc1b868396873b61_11.geojson".

    Returns:
        A DataFrame containing the property data

    Raises:
        HTTPStatusError
    """
    data = download_data(api_url)
    properties = [x["properties"] for x in data.json()["features"] if x.get("properties")]

    return pd.DataFrame(properties)
Converts the propertry data into a DataFrame.

    Args:
        api_url: The url to use for the download. Defaults to
            "https://opendata.arcgis.com/datasets/8b90b56df08a4bd5bc1b868396873b61_11.geojson".

    Returns:
        A DataFrame containing the property data

    Raises:
        HTTPStatusError
    
Converts the propertry data into a DataFrame.
Args:
api_url: The url to use for the download.

A DataFrame containing the property data


Converts the propertry data into a DataFrame . Args : api_url : The url to use for the download . A DataFrame containing the property data
def load_data_to_dataframe(
    api_url: str = "https://opendata.arcgis.com/datasets/8b90b56df08a4bd5bc1b868396873b61_11.geojson",
) -> pd.DataFrame:
    data = download_data(api_url)
    properties = [x["properties"] for x in data.json()["features"] if x.get("properties")]
    return pd.DataFrame(properties)
def load_data_to_dataframe ( api_url : str = "https://opendata.arcgis.com/datasets/8b90b56df08a4bd5bc1b868396873b61_11.geojson" , ) -> pd . DataFrame : data = download_data ( api_url ) properties = [ x [ "properties" ] for x in data . json ( ) [ "features" ] if x . get ( "properties" ) ] return pd . DataFrame ( properties )
Converts the propertry data into a DataFrame.
Converts the propertry data into a DataFrame .
"""Converts the propertry data into a DataFrame.

    Args:
        api_url: The url to use for the download. Defaults to
            "https://opendata.arcgis.com/datasets/8b90b56df08a4bd5bc1b868396873b61_11.geojson".

    Returns:
        A DataFrame containing the property data

    Raises:
        HTTPStatusError
    """
api_url
str