AlexLipp / POOPy

Object Oriented Python package for interfacing with English Water Companies EDM data
GNU General Public License v3.0
7 stars 1 forks source link

Add function to generate offline history df #23

Closed AlexLipp closed 3 months ago

AlexLipp commented 3 months ago

Currently, a WaterCompany object has a function that takes the history attribute and converts it into a Pandas dataframe of 'events'. These can be exported to other formats for easier analysis, and are used by SewageMap. However, it only does this for discharge events, rather than events when the monitor is 'offline'. This PR adds an analogous method: history_to_offline_df() that implements this. It has also been included in the appropriate example notebook.