From eea25cfe29eb29bc1e5860e7775437a1d474842a Mon Sep 17 00:00:00 2001 From: John S Bogaardt Date: Fri, 25 Nov 2022 15:20:36 -0700 Subject: [PATCH] remove to_datetime deprecation --- chainladder/core/pandas.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/chainladder/core/pandas.py b/chainladder/core/pandas.py index 244837a5..8266b119 100644 --- a/chainladder/core/pandas.py +++ b/chainladder/core/pandas.py @@ -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 @@ -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: