Skip to content

Commit

Permalink
fix(docs): fix docs of clean_df
Browse files Browse the repository at this point in the history
fix(docs): fix docs of clean_df

fix(docs): fix docs of clean_df

fix(docs): fix docs of clean_df
  • Loading branch information
qidanrui committed Apr 21, 2021
1 parent 8b0b253 commit 38dd4b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions dataprep/clean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

from .clean_currency import clean_currency, validate_currency

from .clean_df import clean_df


__all__ = [
"clean_lat_long",
Expand All @@ -47,4 +49,5 @@
"clean_duplication",
"clean_currency",
"validate_currency",
"clean_df",
]
16 changes: 12 additions & 4 deletions dataprep/clean/clean_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Conduct a set of operations that would be useful for
cleaning and standardizing a full Pandas DataFrame.
"""
# pylint: disable-msg=relative-beyond-top-level
# pylint: disable-msg=cyclic-import

import operator
from typing import Dict, Any, Union, Tuple

Expand All @@ -12,10 +15,14 @@

# from ..eda.progress_bar import ProgressBar

from dataprep.clean import validate_email, validate_country, validate_phone
from dataprep.clean import validate_url, validate_lat_long, validate_ip
from dataprep.clean import validate_address, clean_headers

from .clean_email import validate_email
from .clean_country import validate_country
from .clean_phone import validate_phone
from .clean_url import validate_url
from .clean_lat_long import validate_lat_long
from .clean_ip import validate_ip
from .clean_address import validate_address
from .clean_headers import clean_headers
from .utils import NULL_VALUES


Expand Down Expand Up @@ -91,6 +98,7 @@ def clean_df(
# pylint: disable=too-many-arguments
# pylint: disable-msg=too-many-locals
# pylint:disable=too-many-branches
# type: ignore

if data_type_detection not in {"semantic", "atomic", "none"}:
raise ValueError(
Expand Down

0 comments on commit 38dd4b2

Please sign in to comment.