From 538255b8cb6742bd3c63f3ecc969383b823d04c8 Mon Sep 17 00:00:00 2001 From: Paul Natsuo Kishimoto Date: Tue, 19 Nov 2024 22:44:58 +0100 Subject: [PATCH] Ignore index in .transport.operator.merge_data() --- message_ix_models/model/transport/operator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/message_ix_models/model/transport/operator.py b/message_ix_models/model/transport/operator.py index 90bc82800..73ce3ab6e 100644 --- a/message_ix_models/model/transport/operator.py +++ b/message_ix_models/model/transport/operator.py @@ -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":