Skip to content

the method of adding 'time' column #8

@sunwenqi10

Description

@sunwenqi10

In utils.load_data:
data['time'] = pd.date_range('1/1/2000', periods=data.shape[0], freq='600s')
This means the engines run sequentially. If not, why not use the following code:
starting_date = pd.Timestamp(2000, 1, 1)
data['time'] = [starting_date + pd.Timedelta(x * 10, 'm') for x in data['time_in_cycles']]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions