Skip to content

Commit 7658724

Browse files
authored
Merge pull request #1821 from cmu-delphi/krivard/pin-pandas-m2
Pin pandas below v2
2 parents 479f8f4 + 64c9114 commit 7658724

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

_delphi_utils_python/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"mock",
1515
"moto",
1616
"numpy",
17-
"pandas>=1.1.0",
17+
"pandas>=1.1.0,<2",
1818
"pydocstyle",
1919
"pylint==2.8.3",
2020
"pytest",

_delphi_utils_python/tests/test_geomap.py

+4
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ def test_add_geocode(self, geomapper):
275275
new_data = geomapper.add_geocode(self.zip_data, "zip", "state_code")
276276
new_data2 = geomapper.add_geocode(new_data, "state_code", "nation")
277277
assert new_data2["nation"].unique()[0] == "us"
278+
new_data = geomapper.replace_geocode(self.zip_data, "zip", "state_code")
279+
new_data2 = geomapper.add_geocode(new_data, "state_code", "state_id", new_col="state")
280+
new_data3 = geomapper.replace_geocode(new_data2, "state_code", "nation", new_col="geo_id")
281+
assert "state" not in new_data3.columns
278282

279283
# state_code -> hhs
280284
new_data = geomapper.add_geocode(self.zip_data, "zip", "state_code")

0 commit comments

Comments
 (0)