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.
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.