-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec857e7
commit a7bf820
Showing
3 changed files
with
40 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""This module implements load dataset related functions""" | ||
|
||
from ._base import load_dataset, _load_dataset_as_dask, load_db | ||
from ._base import get_dataset_names | ||
from ._base import get_dataset_names, get_db_names | ||
|
||
__all__ = ["load_dataset", "get_dataset_names", "_load_dataset_as_dask", "load_db"] | ||
__all__ = ["load_dataset", "get_dataset_names", "_load_dataset_as_dask", "load_db", "get_db_names"] |
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,16 +1,27 @@ | ||
""" | ||
module for testing the functions inside datasets | ||
""" | ||
from ...datasets import get_dataset_names, load_dataset | ||
from ...datasets import get_dataset_names, get_db_names, load_dataset, load_db | ||
|
||
|
||
def test_get_dataset_names() -> None: | ||
names = get_dataset_names() | ||
assert len(names) > 0 | ||
|
||
|
||
def test_get_db_names() -> None: | ||
names = get_db_names() | ||
assert len(names) > 0 | ||
|
||
|
||
def test_load_dataset() -> None: | ||
dataset_names = get_dataset_names() | ||
for name in dataset_names: | ||
df = load_dataset(name) | ||
assert len(df) > 0 | ||
|
||
|
||
def test_load_db() -> None: | ||
dataset_names = get_db_names() | ||
for name in dataset_names: | ||
db = load_db(name) |
a7bf820
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DataPrep.EDA Benchmarks
dataprep/tests/benchmarks/eda.py::test_create_report
0.2320414745737631
iter/sec (stddev: 0.10895920969644982
)0.17477829486814497
iter/sec (stddev: 0.10564637467677622
)0.75
This comment was automatically generated by workflow using github-action-benchmark.