I have two lines of code
from sklearn.datasets import load_wine
X, y = load_wine(as_frame=True, return_X_y=True)
And I'm getting the following message:
TypeError Traceback (most recent call last)
<ipython-input-19-a85f1453ccf2> in <module>()
1 from sklearn.datasets import load_wine
2
----> 3 X, y = load_wine(as_frame=True, return_X_y=True)
TypeError: load_wine() got an unexpected keyword argument 'as_frame'
If I take off the argument as_frame the code works fine, but it isn't what I need.
How do I fix it? Thank you