Skip to content

Commit

Permalink
Changed append to concat in VitalsDataFrame extend method, because pd…
Browse files Browse the repository at this point in the history
….DataFrame no longer has an append method to inherit
  • Loading branch information
Eric Stofferahn authored and jkrasting committed Jul 22, 2023
1 parent 5dcc290 commit e9eb073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfdlvitals/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9eb073

Please sign in to comment.