-
Notifications
You must be signed in to change notification settings - Fork 903
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add deprecation warnings for various IO methods
- Loading branch information
Showing
10 changed files
with
170 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
# Copyright (c) 2018-2024, NVIDIA CORPORATION. | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
from dask_cudf import _deprecated_api | ||
|
||
from . import csv, orc, json, parquet, text # noqa: F401 | ||
|
||
|
||
read_csv = _deprecated_api( | ||
"dask_cudf.io.read_csv", new_api="dask_cudf.read_csv" | ||
) | ||
read_json = _deprecated_api( | ||
"dask_cudf.io.read_json", new_api="dask_cudf.read_json" | ||
) | ||
read_orc = _deprecated_api( | ||
"dask_cudf.io.read_orc", new_api="dask_cudf.read_orc" | ||
) | ||
to_orc = _deprecated_api( | ||
"dask_cudf.io.to_orc", | ||
new_api="dask_cudf._legacy.io.to_orc", | ||
rec="Please use the DataFrame.to_orc method instead.", | ||
) | ||
read_text = _deprecated_api( | ||
"dask_cudf.io.read_text", new_api="dask_cudf.read_text" | ||
) | ||
read_parquet = _deprecated_api( | ||
"dask_cudf.io.read_parquet", new_api="dask_cudf.read_parquet" | ||
) | ||
to_parquet = _deprecated_api( | ||
"dask_cudf.io.to_parquet", | ||
new_api="dask_cudf._legacy.io.parquet.to_parquet", | ||
rec="Please use the DataFrame.to_parquet method instead.", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
from dask_cudf import _deprecated_api | ||
|
||
read_csv = _deprecated_api( | ||
"dask_cudf.io.csv.read_csv", | ||
new_api="dask_cudf.read_csv", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
from dask_cudf import _deprecated_api | ||
|
||
read_json = _deprecated_api( | ||
"dask_cudf.io.json.read_json", | ||
new_api="dask_cudf.read_json", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
from dask_cudf import _deprecated_api | ||
|
||
read_orc = _deprecated_api( | ||
"dask_cudf.io.orc.read_orc", | ||
new_api="dask_cudf.read_orc", | ||
) | ||
to_orc = _deprecated_api( | ||
"dask_cudf.io.orc.to_orc", | ||
new_api="dask_cudf._legacy.io.orc.to_orc", | ||
rec="Please use the DataFrame.to_orc method instead.", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. | ||
|
||
from dask_cudf import _deprecated_api | ||
|
||
read_text = _deprecated_api( | ||
"dask_cudf.io.text.read_text", | ||
new_api="dask_cudf.read_text", | ||
) |