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

AttributeError: 'DataFrame' object has no attribute 'append' #102

Closed
charitarthchugh opened this issue Apr 25, 2023 · 4 comments
Closed

Comments

@charitarthchugh
Copy link
Contributor

This is occurring in the splitter functions. pandas's dataframe append has been depreciated, and that is likely the cause of this issue.

    from pylabel.importer import ImportVOC

    dataset = ImportVOC(
        "./data/train/Annotations", path_to_images="./data/train/JPEGImages"
    )
    dataset.splitter.GroupShuffleSplit(train_pct=0.6, test_pct=0.2, val_pct=0.2)
 File "/home/cc/.cache/pypoetry/virtualenvs/dac2023-gpu-fastestdet-4X0QWZQw-py3.8/lib/python3.8/site-packages/pylabel/splitter.py", line 36, in GroupShuffleSplit
    self.dataset.df = df_train.append(df_test)
  File "/home/cc/.cache/pypoetry/virtualenvs/dac2023-gpu-fastestdet-4X0QWZQw-py3.8/lib/python3.8/site-packages/pandas/core/generic.py", line 5989, in __getattr__
    return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'
@charitarthchugh
Copy link
Contributor Author

I forgot to add: pandas version 2.0.0+

@alexheat
Copy link
Contributor

alexheat commented Apr 26, 2023 via email

alexheat added a commit to alexheat/pylabel that referenced this issue Apr 29, 2023
alexheat added a commit that referenced this issue Apr 29, 2023
Remove pandas.append to resolve issue #102
alexheat added a commit that referenced this issue Apr 29, 2023
Remove pandas.append to resolve issue #102
@alexheat
Copy link
Contributor

Hi I released ver .49 which fixed the issue!

https://github.com/pylabel-project/pylabel/releases/tag/v0.1.49

@charitarthchugh
Copy link
Contributor Author

charitarthchugh commented Apr 29, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants