Skip to content

Commit

Permalink
remove to_datetime deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogaardt committed Nov 25, 2022
1 parent dc88f69 commit eea25cf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions chainladder/core/pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __getitem__(self, key):


class TrianglePandas:
def to_frame(self, origin_as_datetime=None, keepdims=False,
def to_frame(self, origin_as_datetime=True, keepdims=False,
implicit_axis=False, *args, **kwargs):
""" Converts a triangle to a pandas.DataFrame.
Parameters
Expand All @@ -56,12 +56,6 @@ def to_frame(self, origin_as_datetime=None, keepdims=False,
-------
pandas.DataFrame representation of the Triangle.
"""
if origin_as_datetime == None:
# this will be set to True as the default in an upcoming version of the package
warning = "In an upcoming version of the package, `origin_as_datetime` will be defaulted to `True` in to_frame(...), use `origin_as_datetime=False` to preserve current setting."
warnings.warn(warning)
origin_as_datetime = False

axes = [num for num, item in enumerate(self.shape) if item > 1]

if keepdims:
Expand Down

0 comments on commit eea25cf

Please sign in to comment.