chatfed_whisp / utils /whisp_preprocessing.py
leavoigt's picture
add preprocessing function
a576faa
raw
history blame
399 Bytes
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