Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pandas FutureWarning: Downcasting object dtype... #286

@jarrTecn

Description

@jarrTecn

Hello! I obtain the following message:

python3.12/site-packages/upsetplot/data.py:303: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is 
deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, 
set `pd.set_option('future.no_silent_downcasting', True)`
  df.fillna(False, inplace=True)

There is an interesting comment at StackOverflow:

I would not recommend setting pandas.set_option("future.no_silent_downcasting", True) as this may hide issues elsewhere.

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