Spaces:
Running

electrocheap / examples.py
kugguk's picture
Deploy React Electrocheap · XenoWAttz × Bhor Bohr
628ab0d verified
Raw History Blame Contribute Delete
708 Bytes
from pathlib import Path
import pandas as pd
ROOT=Path(__file__).resolve().parent
def examples():
quotes=pd.read_csv(ROOT/'data/example_quotes.csv',keep_default_na=False).to_dict('records')
pt=[q for q in quotes if q['country']=='PT']
sample={'country':'PT','region':'PT-mainland','annual_kwh':3500,'current_annual_bill':1200,'peak_share':.5,'meter_type':'standard','allow_illustrative':True,'as_of':'2026-10-10','offers':pt}
ngo={'offers':pt,'allow_illustrative':True,'as_of':'2026-10-10','profiles':[{'profile_id':'household-001','country':'PT','region':'PT-mainland','customer_type':'consumer','annual_kwh':3500,'current_annual_bill':1200,'meter_type':'standard'}]}
return sample,ngo