Skip to content

Commit

Permalink
Merge pull request #76 from joshua-cogliati-inl/new_pandas
Browse files Browse the repository at this point in the history
Support pandas 2
  • Loading branch information
worseliz authored Jul 10, 2023
2 parents 774247f + d003222 commit 97e32db
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 97e32db

Please sign in to comment.