Skip to content

Commit

Permalink
Addressed "FutureWarning: 'Y-DEC' is deprecated and will be removed i…
Browse files Browse the repository at this point in the history
…n a future version, please use 'YE-DEC' instead."
  • Loading branch information
kennethshsu committed May 17, 2024
1 parent 0181b69 commit cfa4167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainladder/core/triangle.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def grain(self, grain="", trailing=False, inplace=False):
obj = self.dev_to_val()

if ograin_new != ograin_old:
freq = {"Y": "Y", "S": "2Q"}.get(ograin_new, ograin_new)
freq = {"Y": "YE", "S": "2Q"}.get(ograin_new, ograin_new)

if trailing or (obj.origin.freqstr[-3:] != "DEC" and ograin_old != "M"):
origin_period_end = self.origin[-1].strftime("%b").upper()
Expand Down

0 comments on commit cfa4167

Please sign in to comment.