From d00322296f7075130f3edfffeec2417fe924f56f Mon Sep 17 00:00:00 2001 From: "Joshua J. Cogliati" Date: Wed, 5 Jul 2023 08:44:38 -0600 Subject: [PATCH] Support pandas 2 --- tests/HourlyObjectOrientedTest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/HourlyObjectOrientedTest.py b/tests/HourlyObjectOrientedTest.py index d2680923e..378eb0ca7 100644 --- a/tests/HourlyObjectOrientedTest.py +++ b/tests/HourlyObjectOrientedTest.py @@ -176,6 +176,9 @@ def createRecurringHourly(df, comp, life, driver, alpha): cf.initParams(life) yearDfs = df.groupby([df.index.year]) for year, yearDf in yearDfs: + #year can be an number or tuple depending on pandas version + if isinstance(year, tuple): + year = year[0] y = year - 2018 if y > life: break