Skip to content

Commit 2f6ebcd

Browse files
committed
Add pandas.core.groupby
1 parent a1d51b9 commit 2f6ebcd

File tree

10 files changed

+98
-0
lines changed

10 files changed

+98
-0
lines changed

pandas/core/groupby/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from pandas._core import groupby as groupby_
2+
from pandas.core.common import _depr_core
3+
4+
5+
def __getattr__(attr_name):
6+
attr = getattr(groupby_, attr_name)
7+
_depr_core()
8+
return attr

pandas/core/groupby/base.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from __future__ import annotations
2+
3+
from pandas._core.groupby import base
4+
from pandas.core.common import _depr_core
5+
6+
_depr_core()
7+
8+
_globals = globals()
9+
10+
for item in base.__dir__():
11+
_globals[item] = getattr(base, item)

pandas/core/groupby/categorical.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from __future__ import annotations
2+
3+
from pandas._core.groupby import categorical
4+
from pandas.core.common import _depr_core
5+
6+
_depr_core()
7+
8+
_globals = globals()
9+
10+
for item in categorical.__dir__():
11+
_globals[item] = getattr(categorical, item)

pandas/core/groupby/generic.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from __future__ import annotations
2+
3+
from pandas._core.groupby import generic
4+
from pandas.core.common import _depr_core
5+
6+
_depr_core()
7+
8+
_globals = globals()
9+
10+
for item in generic.__dir__():
11+
_globals[item] = getattr(generic, item)

pandas/core/groupby/groupby.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from __future__ import annotations
2+
3+
from pandas._core.groupby import groupby
4+
from pandas.core.common import _depr_core
5+
6+
_depr_core()
7+
8+
_globals = globals()
9+
10+
for item in groupby.__dir__():
11+
_globals[item] = getattr(groupby, item)

pandas/core/groupby/grouper.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from __future__ import annotations
2+
3+
from pandas._core.groupby import grouper
4+
from pandas.core.common import _depr_core
5+
6+
_depr_core()
7+
8+
_globals = globals()
9+
10+
for item in grouper.__dir__():
11+
_globals[item] = getattr(grouper, item)

pandas/core/groupby/indexing.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from __future__ import annotations
2+
3+
from pandas._core.groupby import indexing
4+
from pandas.core.common import _depr_core
5+
6+
_depr_core()
7+
8+
_globals = globals()
9+
10+
for item in indexing.__dir__():
11+
_globals[item] = getattr(indexing, item)

pandas/core/groupby/numba_.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from __future__ import annotations
2+
3+
from pandas._core.groupby import numba_
4+
from pandas.core.common import _depr_core
5+
6+
_depr_core()
7+
8+
_globals = globals()
9+
10+
for item in numba_.__dir__():
11+
_globals[item] = getattr(numba_, item)

pandas/core/groupby/ops.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from __future__ import annotations
2+
3+
from pandas._core.groupby import ops
4+
from pandas.core.common import _depr_core
5+
6+
_depr_core()
7+
8+
_globals = globals()
9+
10+
for item in ops.__dir__():
11+
_globals[item] = getattr(ops, item)

scripts/validate_unwanted_patterns.py

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
"_version_meson",
5454
# TODO(3.0): GH#55043 - remove upon removal of ArrayManager
5555
"_get_option",
56+
# GH#27522
57+
"_depr_core",
5658
}
5759

5860

0 commit comments

Comments
 (0)