ACloudGuru-Resources / Course_AWS_Certified_Machine_Learning

MIT License
151 stars 401 forks source link

AttributeError: 'Series' object has no attribute 'get_values' #4

Closed Aruun closed 3 years ago

Aruun commented 3 years ago

In algorithms lab, after converting the required values to categorical values. When trying to execute the below shell, facing the following issue.

image

I am using conda_python3 kernel and m1.t2.medium notebook instance.

Initial Analysis: Googled the above issue and found the get_values method is deprecated and searching for the alternative method. Could you please help me to find the alternative method.

Thank you!

brocktubre commented 3 years ago

Hi @Aruun, I have fixed this issue by replacing .get_values() with .to_numpy(). Here is the commit: https://github.com/ACloudGuru-Resources/Course_AWS_Certified_Machine_Learning/commit/931951ce8e16e433e29f081afc01b9b2ae5dade4

Aruun commented 3 years ago

Thanks for the great help @brocktubre