Skip to content

Chapter 4 Classification Python Lab corr() numeric_only no longer supported? #24

@davidqwerty

Description

@davidqwerty

When I run the code
Smarket.corr(numeric_only=True)
, I get the following warning:
corr() got an unexpected keyword argument 'numeric_only'

There appears to be a solution:

Smarket = Smarket.select_dtypes(include='number')
Smarket.corr()

This appears to achieve the intended result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions