handson-ml2 icon indicating copy to clipboard operation
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

Open kartikcpp opened this issue 3 years ago • 1 comments

Capturelll

kartikcpp avatar Mar 02 '22 09:03 kartikcpp

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.

ageron avatar Mar 02 '22 20:03 ageron