File size: 399 Bytes
a576faa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pandas as pd
import openpyxl 

def preprocess_whisp_data(response): 

    # Get whisp metadata
    # whisp_metadata_url = "https://github.com/forestdatapartnership/whisp/blob/main/whisp_columns.xlsx"
    # df_metadata = pd.read_excel(whisp_metadata_url, engine="openpyxl")

    # Drop irrelevant entries
    preprocessed_response = response['properties']

    return preprocessed_response