Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean_au_abn returns an empty frame #986

Open
dfxvir opened this issue Apr 28, 2024 · 0 comments
Open

clean_au_abn returns an empty frame #986

dfxvir opened this issue Apr 28, 2024 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@dfxvir
Copy link

dfxvir commented Apr 28, 2024

Describe the bug
clean_au_abn returns an empty frame, whereas validate_au_abn works fine

To Reproduce
Steps to reproduce the behavior:

import pandas as pd
import numpy as np
from dataprep.clean import *

df = pd.DataFrame(
    {
        "abn": [
            "83 914 571 673",
            "99 999 999 999",
            "51824753556",
            "51 824 753 556",
            "hello",
            np.nan,
            "NULL"
        ],
        "address": [
            "123 Pine Ave.",
            "main st",
            "1234 west main heights 57033",
            "apt 1 789 s maple rd manhattan",
            "robie house, 789 north main street",
            "(staples center) 1111 S Figueroa St, Los Angeles",
            "hello",
        ]
    }
)

df_out=clean_au_abn(df, "abn")

df_out

Expected behavior
one dataframe with input records

Desktop (please complete the following information):

  • Dataprep Version [0.4]
@dfxvir dfxvir added the type: bug Something isn't working label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants