@@ -66,9 +66,13 @@ _ExtendedAnyArrayLike: TypeAlias = AnyArrayLike | ArrayLike
6666@overload
6767def pivot_table (
6868 data : DataFrame ,
69- values : _PivotTableValuesTypes [Hashable ] = None ,
70- index : _PivotTableIndexTypes [Hashable ] = None ,
71- columns : _PivotTableColumnsTypes [Hashable ] = None ,
69+ values : _PivotTableValuesTypes [
70+ Hashable # ty: ignore[invalid-type-arguments]
71+ ] = None ,
72+ index : _PivotTableIndexTypes [Hashable ] = None , # ty: ignore[invalid-type-arguments]
73+ columns : _PivotTableColumnsTypes [
74+ Hashable # ty: ignore[invalid-type-arguments]
75+ ] = None ,
7276 aggfunc : (
7377 _PivotAggFunc [Any ]
7478 | Sequence [_PivotAggFunc [Any ]]
@@ -86,10 +90,16 @@ def pivot_table(
8690@overload
8791def pivot_table (
8892 data : DataFrame ,
89- values : _PivotTableValuesTypes [Hashable ] = None ,
93+ values : _PivotTableValuesTypes [
94+ Hashable # ty: ignore[invalid-type-arguments]
95+ ] = None ,
9096 * ,
9197 index : Grouper ,
92- columns : _PivotTableColumnsTypes [Hashable ] | np_ndarray | Index [Any ] = None ,
98+ columns : (
99+ _PivotTableColumnsTypes [Hashable ] # ty: ignore[invalid-type-arguments]
100+ | np_ndarray
101+ | Index [Any ]
102+ ) = None ,
93103 aggfunc : (
94104 _PivotAggFunc [Any ]
95105 | Sequence [_PivotAggFunc [Any ]]
@@ -105,8 +115,14 @@ def pivot_table(
105115@overload
106116def pivot_table (
107117 data : DataFrame ,
108- values : _PivotTableValuesTypes [Hashable ] = None ,
109- index : _PivotTableIndexTypes [Hashable ] | np_ndarray | Index [Any ] = None ,
118+ values : _PivotTableValuesTypes [
119+ Hashable # ty: ignore[invalid-type-arguments]
120+ ] = None ,
121+ index : (
122+ _PivotTableIndexTypes [Hashable ] # ty: ignore[invalid-type-arguments]
123+ | np_ndarray
124+ | Index [Any ]
125+ ) = None ,
110126 * ,
111127 columns : Grouper ,
112128 aggfunc : (
0 commit comments