Skip to content

Commit

Permalink
Make it compatible with pandas 2
Browse files Browse the repository at this point in the history
  • Loading branch information
artemisart authored and EntilZha committed Mar 13, 2024
1 parent 0513fe7 commit 8b25ecd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion functional/test/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ class A(object):
def test_wrap_pandas(self):
df1 = pandas.DataFrame({"name": ["name1", "name2"], "value": [1, 2]})
df2 = pandas.DataFrame({"name": ["name1", "name2"], "value": [3, 4]})
result = seq([df1, df2]).reduce(lambda x, y: x.append(y))
result = seq([df1, df2]).reduce(lambda x, y: pandas.concat([x, y]))
self.assertEqual(result.len(), 4)
self.assertEqual(result[0].to_list(), ["name1", 1])
self.assertEqual(result[1].to_list(), ["name2", 2])
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ packages = [{ include = "functional" }]
python = "^3.8.0"
dill = ">=0.2.5"
tabulate = "<=1.0.0"
pandas = { version = "^1.0.3", optional = true }
pandas = { version = ">=1.0.3", optional = true }

[tool.poetry.extras]
all = ["pandas"]
Expand Down

0 comments on commit 8b25ecd

Please sign in to comment.