8000 Pandas SettingWithCopyWarning · Issue #28 · abhayspawar/featexp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Pandas SettingWithCopyWarning #28
Open
@MauritsDescamps

Description

@MauritsDescamps

When I run get_trend_stats I get the following warning multiple times:

featexp/base.py:23: SettingWithCopyWarning
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead

The origin of the problem is the fact that get_grouped_data changes its input dataframe. It might be better to copy the input data before doing anything with it.

Setup:

  • Python 3.8.13
  • featexp 0.0.7
  • Pandas 1.4.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0