Data Structures#

whatif extends pandas data frame and series to allow you enrich your tabular and sequence data with sar information (i.e., the expected column names of*states*, actions, and rewards).

Please note that this site documents only functionalities that whatif specifically provides. Should you need the documentations for the base pandas functionalities, please consult to pandas.DataFrame and pandas.Series.

WiDataFrame

A WiDataFrame object is a pandas.DataFrame with additional metadata on the expected column names for states, actions, and rewards (i.e., the sar columns).

WiSeries

A WiSeries object is a pandas.Series with additional metadata on the expected column names for states, actions, and rewards (i.e., the sar columns).

TransitionRecorder

Record the transitions in the OpenAI gym gym.Env into a Whatif data frame.