diff --git a/functional/test/test_functional.py b/functional/test/test_functional.py index 732f6e6..646c844 100644 --- a/functional/test/test_functional.py +++ b/functional/test/test_functional.py @@ -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]) diff --git a/poetry.lock b/poetry.lock index 6a7c934..78f351d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. [[package]] name = "astroid" @@ -792,4 +792,4 @@ all = ["pandas"] [metadata] lock-version = "2.0" python-versions = "^3.8.0" -content-hash = "df9321536c517f64571916d7ede61c1d058a8e52d53c3f9b34f2d07b6222383d" +content-hash = "651ca0c3035b31fc6d501f825f69de017d8d69c6b39d154f4742d17923f9d4ba" diff --git a/pyproject.toml b/pyproject.toml index ff3471e..8c0b117 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"]