Skip to content

Commit b8bfbce

Browse files
leave a note about future deprecations (pandas 2.1)
1 parent 4785275 commit b8bfbce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

climada/engine/test/test_impact_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_emdat_impact_event_2020(self):
144144
self.assertEqual(2000, df['reference_year'].min())
145145

146146
def test_emdat_impact_yearlysum_no_futurewarning(self):
147-
"""Ensure that no FutureWarning is issued"""
147+
"""Ensure that no FutureWarning about `DataFrame.append` being deprecated is issued"""
148148
with warnings.catch_warnings():
149149
# Make sure that FutureWarning will cause an error
150150
warnings.simplefilter("error", category=FutureWarning)
@@ -156,6 +156,8 @@ def test_emdat_impact_yearlysum_no_futurewarning(self):
156156
reference_year=None,
157157
imp_str="Total Affected",
158158
)
159+
# TODO: pandas 2.1 will eventually raise a FutureWarning here,
160+
# but about array concatenation of empty entries. fix it!
159161

160162
def test_emdat_affected_yearlysum(self):
161163
"""test emdat_impact_yearlysum yearly impact data extraction"""

0 commit comments

Comments
 (0)