resqpy.olio.dataframe.TimeTable

class resqpy.olio.dataframe.TimeTable(model, support_root=None, uuid=None, df=None, uom_list=None, realization=None, time_series=None, title='timetable', column_lookup_uuid=None, uom_lookup_uuid=None)[source]

Bases: DataFrame

Class for storing and retrieving a pandas dataframe where rows relate to steps in a time series.

Note

inherits from DataFrame class

Methods:

__init__(model[, support_root, uuid, df, ...])

Create a new TimeTable object from either a previously stored property or a pandas dataframe.

time_series()

Returns the TimeSeries object in use by the time table.

write_hdf5_and_create_xml()

Write time table data to hdf5 file and create xml for RESQML objects to represent dataframe.

Inherited from DataFrame

__init__(model[, support_root, uuid, df, ...])

Create a new TimeTable object from either a previously stored property or a pandas dataframe.

dataframe()

Returns the Dataframe as a pandas DataFrame.

column_uom(col_index)

Returns units of measure for the specified column, or Euc if no units present.

write_hdf5_and_create_xml()

Write time table data to hdf5 file and create xml for RESQML objects to represent dataframe.


column_uom(col_index)

Returns units of measure for the specified column, or Euc if no units present.

dataframe()

Returns the Dataframe as a pandas DataFrame.

__init__(model, support_root=None, uuid=None, df=None, uom_list=None, realization=None, time_series=None, title='timetable', column_lookup_uuid=None, uom_lookup_uuid=None)[source]

Create a new TimeTable object from either a previously stored property or a pandas dataframe.

Parameters:

time_series (resqpy.time_series.TimeSeries) – the time series which rows in the dataframe relate to; required if initialising from a dataframe, ignored otherwise

Note

see DataFrame class docstring for details of other arguments

time_series()[source]

Returns the TimeSeries object in use by the time table.

write_hdf5_and_create_xml()[source]

Write time table data to hdf5 file and create xml for RESQML objects to represent dataframe.