Skip to content

Commit 07bae8e

Browse files
committed
DataFrame needs to be imported after NamedAgg to avoid a circular import
1 parent 3acc53a commit 07bae8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@
2323
UInt64Dtype,
2424
)
2525
from pandas.core.construction import array
26-
from pandas.core.frame import DataFrame
26+
2727
from pandas.core.groupby import Grouper, NamedAgg
28+
29+
# DataFrame needs to be imported after NamedAgg to avoid a circular import
30+
from pandas.core.frame import DataFrame # isort:skip
2831
from pandas.core.index import (
2932
CategoricalIndex,
3033
DatetimeIndex,

0 commit comments

Comments
 (0)