Skip to content

Commit

Permalink
solved AS/YS warning
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Jun 7, 2024
1 parent dd12a3c commit 7471f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kenmerkendewaarden/slotgemiddelden.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def fit_models(mean_array_todate: pd.Series) -> pd.DataFrame:


# We'll just use the years. This assumes that annual waterlevels are used that are stored left-padded, the mean waterlevel for 2020 is stored as 2020-1-1. This is not logical, but common practice.
allyears_DTI = pd.date_range(mean_array_todate.index.min(),mean_array_todate.index.max()+dt.timedelta(days=5*360),freq='AS')
allyears_DTI = pd.date_range(mean_array_todate.index.min(),mean_array_todate.index.max()+dt.timedelta(days=5*360),freq='YS')
mean_array_allyears = pd.Series(mean_array_todate,index=allyears_DTI)

df = pd.DataFrame({'year':mean_array_allyears.index.year, 'height':mean_array_allyears.values}) #TODO: make functions accept mean_array instead of df as argument?
Expand Down

0 comments on commit 7471f97

Please sign in to comment.