@@ -6,6 +6,7 @@ from collections.abc import (
66)
77import datetime
88from typing import (
9+ Any ,
910 Literal ,
1011 TypeAlias ,
1112 overload ,
@@ -69,11 +70,11 @@ def pivot_table(
6970 columns : _PivotTableColumnsTypes = None ,
7071 aggfunc : (
7172 _PivotAggFunc | Sequence [_PivotAggFunc ] | Mapping [Hashable , _PivotAggFunc ]
72- ) = ... ,
73+ ) = "mean" ,
7374 fill_value : Scalar | None = None ,
7475 margins : bool = False ,
7576 dropna : bool = True ,
76- margins_name : Hashable = "all " ,
77+ margins_name : Hashable = "All " ,
7778 observed : bool = True ,
7879 sort : bool = True ,
7980) -> DataFrame : ...
@@ -85,22 +86,22 @@ def pivot_table(
8586 values : _PivotTableValuesTypes = None ,
8687 * ,
8788 index : Grouper ,
88- columns : _PivotTableColumnsTypes | Index | npt .NDArray = None ,
89+ columns : _PivotTableColumnsTypes | npt .NDArray [ Any ] | Index = None ,
8990 aggfunc : (
9091 _PivotAggFunc | Sequence [_PivotAggFunc ] | Mapping [Hashable , _PivotAggFunc ]
9192 ) = "mean" ,
9293 fill_value : Scalar | None = None ,
9394 margins : bool = False ,
9495 dropna : bool = True ,
95- margins_name : Hashable = "all " ,
96+ margins_name : Hashable = "All " ,
9697 observed : bool = True ,
9798 sort : bool = True ,
9899) -> DataFrame : ...
99100@overload
100101def pivot_table (
101102 data : DataFrame ,
102103 values : _PivotTableValuesTypes = None ,
103- index : _PivotTableIndexTypes | Index | npt .NDArray = None ,
104+ index : _PivotTableIndexTypes | npt .NDArray [ Any ] | Index = None ,
104105 * ,
105106 columns : Grouper ,
106107 aggfunc : (
@@ -109,7 +110,7 @@ def pivot_table(
109110 fill_value : Scalar | None = None ,
110111 margins : bool = False ,
111112 dropna : bool = True ,
112- margins_name : Hashable = "all " ,
113+ margins_name : Hashable = "All " ,
113114 observed : bool = True ,
114115 sort : bool = True ,
115116) -> DataFrame : ...
0 commit comments