Blob Blame History Raw
From 71f433d951a074658b11468ea3255570a8cb8023 Mon Sep 17 00:00:00 2001
From: ossdev07 <39188636+ossdev07@users.noreply.github.com>
Date: Thu, 21 Nov 2019 12:29:57 +0530
Subject: [PATCH] [dask] : Change the test_repartition_npartitions test series
 data

Change the test_repartition_npartitions test series input from [10, 20, 30, 40, 50, 60] to [1, 2, 3, 4, 5, 6] in order for it to pass on aarch64 architecture(non-intel), which was failing with previous values due to floating point calculations and precision.
---
 dask/dataframe/tests/test_dataframe.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dask/dataframe/tests/test_dataframe.py b/dask/dataframe/tests/test_dataframe.py
index 7cb4e4d1a8..2ca635f9bc 100644
--- a/dask/dataframe/tests/test_dataframe.py
+++ b/dask/dataframe/tests/test_dataframe.py
@@ -1734,7 +1734,7 @@ def test_repartition_on_pandas_dataframe():
 def test_repartition_npartitions(use_index, n, k, dtype, transform):
     df = pd.DataFrame(
         {"x": [1, 2, 3, 4, 5, 6] * 10, "y": list("abdabd") * 10},
-        index=pd.Series([10, 20, 30, 40, 50, 60] * 10, dtype=dtype),
+        index=pd.Series([1, 2, 3, 4, 5, 6] * 10, dtype=dtype),
     )
     df = transform(df)
     a = dd.from_pandas(df, npartitions=n, sort=use_index)