-
Notifications
You must be signed in to change notification settings - Fork 4
Description
On an iRuby notebook (IRuby 0.4.0, Ruby 2.7.0, Ubuntu 18.04.1), while following the first tutorial on Nyaplot diagrams, as I try to use a DataFrame i get a NoMethodError: undefined method `<' for nil:NilClass
The code I try to run:
plot2 = Nyaplot::Plot.new
plot2.add_with_df(df, :bar, :species, :number) # x-> column :species, y-> column :number
plot2.show
The error I get (full trace):
NoMethodError: undefined method <' for nil:NilClass /home/xxx/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/nyaplot-0.1.6/lib/nyaplot/diagram.rb:70:in process_data'
/home/xxx/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/nyaplot-0.1.6/lib/nyaplot/diagram.rb:16:in initialize' /home/xxx/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/nyaplot-0.1.6/lib/nyaplot/plot.rb:75:in new'
/home/xxx/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/nyaplot-0.1.6/lib/nyaplot/plot.rb:75:in `add_with_df'