Skip to content

Commit

Permalink
Ignore index in .transport.operator.merge_data()
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Nov 20, 2024
1 parent dcd802d commit 538255b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion message_ix_models/model/transport/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,9 @@ def merge_data(
:func:`message_ix_models.util.merge_data`.
"""
keys: Set[Hashable] = reduce(lambda x, y: x | y.keys(), others, set())
return {k: pd.concat([o.get(k, None) for o in others]) for k in keys}
return {
k: pd.concat([o.get(k, None) for o in others], ignore_index=True) for k in keys
}


def iea_eei_fv(name: str, config: Dict) -> "AnyQuantity":
Expand Down

0 comments on commit 538255b

Please sign in to comment.