Skip to content

forecast() takes 1 positional argument but 2 were given #3

Description

@muhdzubair

Hi, I am tryin to run this code but it is throwing error on forecast function

`gm11 = grey.gm11

gm11.add_pattern(223.3, "a1")
gm11.add_pattern(227.3, "a2")
gm11.add_pattern(230.5, "a3")
gm11.add_pattern(238.1, "a4")
gm11.add_pattern(242.9, "a5")
gm11.add_pattern(251.1, "a6")

gm11.forecast(2) # Default is 1, the parameter means how many next moments need to forcast continually.


TypeError Traceback (most recent call last)
in
14 gm11.add_pattern(df_mbu_p2.loc[1]['M1'], "M1")
15
---> 16 gm11.forecast(1)

TypeError: forecast() takes 1 positional argument but 2 were given`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions