handson-ml2
handson-ml2 copied to clipboard
[BUG] I think there was error in ch3 page 131 line 3rd of the code .You can't take a row like that from DataFrame
Hi @kartikcpp ,
The problem comes from the fact that fetch_openml() used to return a NumPy array, but it now returns a DataFrame. Please call fetch_openml() with as_frame=False as argument to make it return a NumPy array. Everything should work fine after that.
Hope this helps.