diff --git a/gfdlvitals/extensions.py b/gfdlvitals/extensions.py index 1349406..f7bad53 100644 --- a/gfdlvitals/extensions.py +++ b/gfdlvitals/extensions.py @@ -370,7 +370,7 @@ def extend(self, maxlen): padding = np.arange(1, maxlen - len(self.index) + 1) + endyear[0] added_index = [cftime.DatetimeNoLeap(x, *endyear[1:]) for x in padding] _df = pd.DataFrame({"times": added_index}).set_index("times") - _df = self.append(_df) + _df = pd.concat([self,_df]) _df.attrs = self.attrs for column in self.columns: _df[column].attrs = self[column].attrs