ankane / prophet-ruby

Time series forecasting for Ruby
MIT License
396 stars 11 forks source link

undefined method `missing' for nil:NilClass #13

Closed Riior closed 2 years ago

Riior commented 2 years ago

Hi,

I am not a programmer so I don't know how to solve this problem. I am getting the message below when trying to run the program.

/var/lib/gems/3.0.0/gems/prophet-rb-0.2.3/lib/prophet/forecaster.rb:613:in fit ': undefined method missing' for nil: NilClass (NoMethodError) from prophet.rb: 7: in `

'

This is what my application looks like:

Zrzut ekranu z 2022-04-28 13-35-12

ankane commented 2 years ago

Hey @Riior, it looks like that error occurs if the data frame is missing a y column. Just pushed a commit to improve the message.