Heat_map_pole301 / utils.py
Sanjayraju30's picture
Create utils.py
8c73e9d verified
raw
history blame contribute delete
468 Bytes
# Example function to process fetched data
def process_data(poles_data):
# Process the raw data, e.g., clean it, filter, or manipulate
processed_data = []
for pole in poles_data:
# Example: Add a field for the total energy generated based on Solar and Wind outputs
total_energy = pole['Solar_Output__c'] + pole['Wind_Output__c']
pole['Total_Energy'] = total_energy
processed_data.append(pole)
return processed_data