Skip to content

Commit

Permalink
Support pandas 2
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-cogliati-inl committed Jul 5, 2023
1 parent 14b529c commit d003222
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/HourlyObjectOrientedTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d003222

Please sign in to comment.