From c030d6a19405b046cb6462a02bf8cce663d0ac31 Mon Sep 17 00:00:00 2001 From: Daniel Huppmann Date: Mon, 15 Dec 2025 14:32:28 +0100 Subject: [PATCH] Avoid pandas DeprecationWarning in the Statistics class --- pyam/statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyam/statistics.py b/pyam/statistics.py index 44e94149c..ae01a0494 100644 --- a/pyam/statistics.py +++ b/pyam/statistics.py @@ -211,7 +211,7 @@ def add(self, data, header, row=None, subheader=None): # noqa: C901 if self.stats is None: self.stats = _stats else: - self.stats = _stats.combine_first(self.stats) + self.stats = _stats.combine_first(self.stats, sort=False) def reindex(self, copy=True): """Reindex the summary statistics dataframe"""