impactlab / eemeter

‼️ MOVED TO https://github.com/openeemeter/eemeter - Core computation engine for the Open Energy Efficiency Meter
https://eemeter.readthedocs.io/
MIT License
25 stars 13 forks source link

Query style interface into Consumption data #84

Closed philngo closed 8 years ago

philngo commented 9 years ago

It would be helpful in some instances to have query-style interface into ConsumptionHistory objects. Right now, the only way to access data in sequentially.

It would be nice to be able to efficiently make the following types of queries:

philngo commented 9 years ago

This would come for free if we used pandas series for storing consumption time series data. The subsequent speed increases (also for weather sources) may make it worth the substantial refactoring that switching to pandas would require.

philngo commented 8 years ago

ConsumptionData objects are built on top of pandas, which allows this to be done quite easily and naturally.