dlpy.timeseries.TimeseriesTable.timeseries_formatting

TimeseriesTable.timeseries_formatting(timeid, timeseries, timeid_informat=None, timeid_format=None, extra_columns=None)

Format the TimeseriesTable

Format timeid into appropriate format and check and format timeseries columns into numeric columns.

Parameters
timeidstring

Specifies the column name for the timeid.

timeseriesstring or list-of-strings

Specifies the column name for the timeseries, that will be part of the input or output of the RNN. If str, then it is univariate time series. If list of strings, then it is multivariate timeseries.

timeid_informatstring, optional

if timeid is in the string format, this is required to parse the timeid column. Default: None

timeid_formatstring, optional

Specifies the SAS format that the timeid column will be stored in after parsing. None means it will be stored in numeric form, not a specific date or datetime format. Default: None

extra_columnsstring or list-of-strings, optional

Specifies the addtional columns to be included. Empty list means to include no extra columns other than timeid and timeseries. if None, all columns are included. Default: None