Skip to content

Commit

Permalink
Add pandas.core.groupby
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach committed Oct 7, 2023
1 parent a1d51b9 commit 2f6ebcd
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pandas/core/groupby/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from pandas._core import groupby as groupby_
from pandas.core.common import _depr_core


def __getattr__(attr_name):
attr = getattr(groupby_, attr_name)
_depr_core()
return attr
11 changes: 11 additions & 0 deletions pandas/core/groupby/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from pandas._core.groupby import base
from pandas.core.common import _depr_core

_depr_core()

_globals = globals()

for item in base.__dir__():
_globals[item] = getattr(base, item)
11 changes: 11 additions & 0 deletions pandas/core/groupby/categorical.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from pandas._core.groupby import categorical
from pandas.core.common import _depr_core

_depr_core()

_globals = globals()

for item in categorical.__dir__():
_globals[item] = getattr(categorical, item)
11 changes: 11 additions & 0 deletions pandas/core/groupby/generic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from pandas._core.groupby import generic
from pandas.core.common import _depr_core

_depr_core()

_globals = globals()

for item in generic.__dir__():
_globals[item] = getattr(generic, item)
11 changes: 11 additions & 0 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from pandas._core.groupby import groupby
from pandas.core.common import _depr_core

_depr_core()

_globals = globals()

for item in groupby.__dir__():
_globals[item] = getattr(groupby, item)
11 changes: 11 additions & 0 deletions pandas/core/groupby/grouper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from pandas._core.groupby import grouper
from pandas.core.common import _depr_core

_depr_core()

_globals = globals()

for item in grouper.__dir__():
_globals[item] = getattr(grouper, item)
11 changes: 11 additions & 0 deletions pandas/core/groupby/indexing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from pandas._core.groupby import indexing
from pandas.core.common import _depr_core

_depr_core()

_globals = globals()

for item in indexing.__dir__():
_globals[item] = getattr(indexing, item)
11 changes: 11 additions & 0 deletions pandas/core/groupby/numba_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from pandas._core.groupby import numba_
from pandas.core.common import _depr_core

_depr_core()

_globals = globals()

for item in numba_.__dir__():
_globals[item] = getattr(numba_, item)
11 changes: 11 additions & 0 deletions pandas/core/groupby/ops.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from __future__ import annotations

from pandas._core.groupby import ops
from pandas.core.common import _depr_core

_depr_core()

_globals = globals()

for item in ops.__dir__():
_globals[item] = getattr(ops, item)
2 changes: 2 additions & 0 deletions scripts/validate_unwanted_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"_version_meson",
# TODO(3.0): GH#55043 - remove upon removal of ArrayManager
"_get_option",
# GH#27522
"_depr_core",
}


Expand Down

0 comments on commit 2f6ebcd

Please sign in to comment.