We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e12608 commit 67641e0Copy full SHA for 67641e0
climada/trajectories/trajectory.py
@@ -190,7 +190,7 @@ def _calc_npv_cash_flows(
190
if not disc_rates:
191
return cash_flows
192
193
- if not isinstance(cash_flows.index, pd.DatetimeIndex):
+ if not isinstance(cash_flows.index, pd.PeriodIndex):
194
raise ValueError("cash_flows must be a pandas Series with a datetime index")
195
196
df = cash_flows.to_frame(name="cash_flow")
0 commit comments