pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
42.57k stars 17.56k forks source link

Drop duplicate indices #59133

Open Yousinator opened 2 days ago

Yousinator commented 2 days ago

Tests are added but have not been run, as I get this error when I try to run them. I tried all envorment setup options but I end-up having the same error

root@92c4f0dec9a0:/home/pandas# pytest pandas/tests/frame/methods/test_drop_duplicates.py
ImportError while loading conftest '/home/pandas/pandas/conftest.py'.
pandas/__init__.py:47: in <module>
    from pandas.core.api import (
pandas/core/api.py:46: in <module>
    from pandas.core.groupby import (
pandas/core/groupby/__init__.py:1: in <module>
    from pandas.core.groupby.generic import (
pandas/core/groupby/generic.py:1418: in <module>
    class DataFrameGroupBy(GroupBy[DataFrame]):
pandas/core/groupby/generic.py:2571: in DataFrameGroupBy
    @doc(DataFrame.plot.__doc__)
E   AttributeError: type object 'DataFrame' has no attribute 'plot'
Yousinator commented 2 days ago

Most of these tests are failing because of the same error mentioned earlier

AttributeError: type object 'DataFrame' has no attribute 'plot'

others like precommit fail from parts that I haven't edited