@@ -164,6 +164,7 @@ from pandas._typing import (
164
164
165
165
from pandas .io .formats .style import Styler
166
166
from pandas .plotting import PlotAccessor
167
+ from pandas .plotting ._core import hist_frame
167
168
168
169
class _iLocIndexerFrame (_iLocIndexer , Generic [_T ]):
169
170
@overload
@@ -1308,8 +1309,8 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1308
1309
def pivot (
1309
1310
self ,
1310
1311
* ,
1312
+ columns : IndexLabel ,
1311
1313
index : IndexLabel = ...,
1312
- columns : IndexLabel = ...,
1313
1314
values : IndexLabel = ...,
1314
1315
) -> Self : ...
1315
1316
def pivot_table (
@@ -1591,14 +1592,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1591
1592
method : Literal ["pearson" , "kendall" , "spearman" ] = ...,
1592
1593
numeric_only : _bool = ...,
1593
1594
) -> Series : ...
1594
- @overload
1595
- def count (
1596
- self , axis : Axis = ..., numeric_only : _bool = ..., * , level : Level
1597
- ) -> Self : ...
1598
- @overload
1599
- def count (
1600
- self , axis : Axis = ..., level : None = ..., numeric_only : _bool = ...
1601
- ) -> Series : ...
1595
+ def count (self , axis : Axis = ..., numeric_only : _bool = ...) -> Self : ...
1602
1596
def nunique (self , axis : Axis = ..., dropna : bool = ...) -> Series : ...
1603
1597
def idxmax (
1604
1598
self , axis : Axis = ..., skipna : _bool = ..., numeric_only : _bool = ...
@@ -1643,7 +1637,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
1643
1637
def isin (self , values : Iterable | Series | DataFrame | dict ) -> Self : ...
1644
1638
@property
1645
1639
def plot (self ) -> PlotAccessor : ...
1646
- hist = ...
1640
+ hist = hist_frame
1647
1641
def boxplot (
1648
1642
self ,
1649
1643
column : _str | list [_str ] | None = ...,
@@ -2447,7 +2441,6 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
2447
2441
self ,
2448
2442
buf : None = ...,
2449
2443
* ,
2450
- level : None = ...,
2451
2444
columns : Sequence [Hashable ] | Index | Series | None = ...,
2452
2445
col_space : int | list [int ] | dict [Hashable , int ] | None = ...,
2453
2446
header : _bool | Sequence [_str ] = ...,
0 commit comments