Skip to content

LineDatafier

LineDatafier

Bases: BaseDatafier

Contains data preparation modules, which includes interpolation. data should be in this format where time is set to index

    Example:
    >>> time  col1 col2 col3 ...
    >>> 2012   1    0    2
    >>> 2013   2    3    1

Parameters:

Name Type Description Default
data pd.DataFrame

The data to be prepared, should be in this format where time is set to index

required
time_format str

Index datetime format

required
ip_freq str

Interpolation frequency

required

prepare_data()

Creates interpolated data

Returns:

Type Description
pd.DataFrame

Interpolated data values