Skip to content

create_cost_projections method causes Pandas Downcasting behavior in "replace" warning #314

Open
@Tyler-lc

Description

@Tyler-lc

Also, once you have it working properly, this happens:

[c:\***\***message-ix-models\message_ix_models\tools\costs\regional_differentiation.py:125](file:///C:/vs_code/hyway_ssp/message-ix-models/message_ix_models/tools/costs/regional_differentiation.py:125): FutureWarning: Downcasting behavior in `replace` is deprecated and will be removed in a future version. To retain the old behavior, explicitly call `result.infer_objects(copy=False)`. To opt-in to the future behavior, set `pd.set_option('future.no_silent_downcasting', True)

I think this is a relatively new warning from pandas. But it is worth looking into it I guess.

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