Open iaindinw opened 5 years ago
hi @iaindinw thanks for the bug report! i think pyGAM should be able to process simple dataframes, so this is annoying. hopefully i can take a look this week!
PS I am very glad you find pyGAM useful :)
Great, it may be my configuration that's causing the issue, particularly python version.
Windows 10 Python 3.7 pygam version 0.8.0 pandas version 0.23.4
I had the same issue with mac OS High Sierra and Python 3.6.
Currently if a DataFrame is passed to gridsearch this returns a TypeError: TypeError: unhashable type: 'slice' This can be avoided by passing dataframe values i.e. gam = LinearGAM.gridsearch(X.values, y) but I think in previous versions handling of DataFrames was automatic. See for example https://codeburst.io/pygam-getting-started-with-generalized-additive-models-in-python-457df5b4705f.
Is this a deliberate design choice or not?
PS thank you for your efforts on pyGAM it's incredibly useful.