Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 non-Null rows limit in _prophet.py #128

Open
danielsioli opened this issue Jun 30, 2022 · 1 comment
Open

2 non-Null rows limit in _prophet.py #128

danielsioli opened this issue Jun 30, 2022 · 1 comment

Comments

@danielsioli
Copy link

Shouldn't line 246 in core/_prophet.py be
if len(self.input_df) - self.input_df.y.isnull().sum() < 2:

instead of
if len(self.input_df) - self.input_df.y.isnull().sum() <= 2:

?

That's the impression I get when reading the comment at 245:

If the input data frame contains less than 2 non-Null rows, prediction is not possible

@abx-212
Copy link

abx-212 commented Jul 27, 2022

Hello Daniel,
I am new to Qlik-python analytics and I'm trying to make forecasting but I keep getting the following as an error, do you have a solution to this?

""""
REQUEST DATA FRAME: (0, 2) rows x cols

Empty DataFrame
Columns: [ds, y]
Index: []
...
Empty DataFrame
Columns: [ds, y]
Index: []

REQUEST NULL VALUES DATA FRAME: (1, 2) rows x cols

ds y
0 NaN 0

INPUT DATA FRAME: (0, 2) rows x cols

Empty DataFrame
Columns: [ds, y]
Index: []
...
Empty DataFrame
Columns: [ds, y]
Index: []

Forecast cannot be generated as the request contains less than two non-Null rows

"""""

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants