Skip to content

Commit

Permalink
FIX-modin-project#2374: add failed test
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev committed Dec 3, 2020
1 parent f5200b4 commit bc22826
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modin/test/backends/pandas/test_internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
# governing permissions and limitations under the License.

import modin.pandas as pd
from modin.pandas.test.utils import create_test_dfs

pd.DEFAULT_NPARTITIONS = 4


def test_aligning_blocks():
Expand All @@ -38,3 +41,14 @@ def test_aligning_blocks_with_duplicated_index():
df2 = pd.DataFrame(data21).append(pd.DataFrame(data22))

repr(df1 - df2)


def test_aligning_partitions():
data = [0, 1, 2, 3, 4, 5]
modin_df1, _ = create_test_dfs({"a": data, "b": data})
modin_df = modin_df1.loc[:2]

modin_df2 = modin_df.append(modin_df)

modin_df2["c"] = modin_df1["b"]
repr(modin_df2)

0 comments on commit bc22826

Please sign in to comment.