Skip to content

deprecated functions in pandas libraries #9

@swricci

Description

@swricci

When using .min() and .mean() on a pandas DataFrame that contains non-numeric columns, function will not work. You need to specify numeric_only = True in the .min(), .mean() call.

FutureWarning: The default value of numeric_only in DataFrameGroupBy.mean is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.

This error does not occur when using Google Colab, but if running in VSCode the error pops up (pandas version 1.5.3)

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