Skip to content

Commit 8a7e8ed

Browse files
authored
Merge branch 'main' into fix/issue-2357-to_parquet-dtype
2 parents cea7648 + ce8a04a commit 8a7e8ed

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/load/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ def df_xl() -> pd.DataFrame:
4949

5050
@pytest.fixture(scope="function")
5151
def big_modin_df() -> pd.DataFrame:
52-
pandas_refs = ray.data.range_table(100_000).to_pandas_refs()
52+
pandas_refs = ray.data.range(100_000).to_pandas_refs()
5353
dataset = ray.data.from_pandas_refs(pandas_refs)
5454

5555
frame = dataset.to_modin()
56-
frame["foo"] = frame.value * 2
57-
frame["bar"] = frame.value % 2
56+
frame["foo"] = frame.id * 2
57+
frame["bar"] = frame.id % 2
5858

5959
return frame

tests/load/test_dynamodb.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ def _fill_dynamodb_table(table_name: str, num_objects: int) -> None:
3030

3131

3232
def create_big_modin_df(table_size: int, num_blocks: Optional[int]) -> pd.DataFrame:
33-
pandas_refs = ray.data.range_table(table_size).to_pandas_refs()
33+
pandas_refs = ray.data.range(table_size).to_pandas_refs()
3434
dataset = ray.data.from_pandas_refs(pandas_refs)
3535

3636
if num_blocks:
3737
dataset = dataset.repartition(num_blocks=num_blocks)
3838

3939
frame = dataset.to_modin()
40-
frame["foo"] = frame.value * 2
41-
frame["bar"] = frame.value % 2
40+
frame["foo"] = frame.id * 2
41+
frame["bar"] = frame.id % 2
4242

4343
return frame
4444

@@ -72,9 +72,9 @@ def test_dynamodb_read(params: Dict[str, Any], dynamodb_table: str, request: pyt
7272
"params",
7373
[
7474
{
75-
"KeySchema": [{"AttributeName": "value", "KeyType": "HASH"}],
75+
"KeySchema": [{"AttributeName": "id", "KeyType": "HASH"}],
7676
"AttributeDefinitions": [
77-
{"AttributeName": "value", "AttributeType": "N"},
77+
{"AttributeName": "id", "AttributeType": "N"},
7878
],
7979
}
8080
],

0 commit comments

Comments
 (0)