Skip to content

Commit 8b25ecd

Browse files
artemisartEntilZha
authored andcommitted
Make it compatible with pandas 2
1 parent 0513fe7 commit 8b25ecd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

functional/test/test_functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ class A(object):
964964
def test_wrap_pandas(self):
965965
df1 = pandas.DataFrame({"name": ["name1", "name2"], "value": [1, 2]})
966966
df2 = pandas.DataFrame({"name": ["name1", "name2"], "value": [3, 4]})
967-
result = seq([df1, df2]).reduce(lambda x, y: x.append(y))
967+
result = seq([df1, df2]).reduce(lambda x, y: pandas.concat([x, y]))
968968
self.assertEqual(result.len(), 4)
969969
self.assertEqual(result[0].to_list(), ["name1", 1])
970970
self.assertEqual(result[1].to_list(), ["name2", 2])

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ packages = [{ include = "functional" }]
3030
python = "^3.8.0"
3131
dill = ">=0.2.5"
3232
tabulate = "<=1.0.0"
33-
pandas = { version = "^1.0.3", optional = true }
33+
pandas = { version = ">=1.0.3", optional = true }
3434

3535
[tool.poetry.extras]
3636
all = ["pandas"]

0 commit comments

Comments
 (0)