@@ -67,9 +67,13 @@ _Values: TypeAlias = SequenceNotStr[Any] | _ExtendedAnyArrayLike
6767@overload
6868def pivot_table (
6969 data : DataFrame ,
70- values : _PivotTableValuesTypes [Hashable ] = None ,
71- index : _PivotTableIndexTypes [Hashable ] = None ,
72- columns : _PivotTableColumnsTypes [Hashable ] = None ,
70+ values : _PivotTableValuesTypes [
71+ Hashable # ty: ignore[invalid-type-arguments]
72+ ] = None ,
73+ index : _PivotTableIndexTypes [Hashable ] = None , # ty: ignore[invalid-type-arguments]
74+ columns : _PivotTableColumnsTypes [
75+ Hashable # ty: ignore[invalid-type-arguments]
76+ ] = None ,
7377 aggfunc : (
7478 _PivotAggFunc [Any ]
7579 | Sequence [_PivotAggFunc [Any ]]
@@ -87,10 +91,16 @@ def pivot_table(
8791@overload
8892def pivot_table (
8993 data : DataFrame ,
90- values : _PivotTableValuesTypes [Hashable ] = None ,
94+ values : _PivotTableValuesTypes [
95+ Hashable # ty: ignore[invalid-type-arguments]
96+ ] = None ,
9197 * ,
9298 index : Grouper ,
93- columns : _PivotTableColumnsTypes [Hashable ] | np_ndarray | Index [Any ] = None ,
99+ columns : (
100+ _PivotTableColumnsTypes [Hashable ] # ty: ignore[invalid-type-arguments]
101+ | np_ndarray
102+ | Index [Any ]
103+ ) = None ,
94104 aggfunc : (
95105 _PivotAggFunc [Any ]
96106 | Sequence [_PivotAggFunc [Any ]]
@@ -106,8 +116,14 @@ def pivot_table(
106116@overload
107117def pivot_table (
108118 data : DataFrame ,
109- values : _PivotTableValuesTypes [Hashable ] = None ,
110- index : _PivotTableIndexTypes [Hashable ] | np_ndarray | Index [Any ] = None ,
119+ values : _PivotTableValuesTypes [
120+ Hashable # ty: ignore[invalid-type-arguments]
121+ ] = None ,
122+ index : (
123+ _PivotTableIndexTypes [Hashable ] # ty: ignore[invalid-type-arguments]
124+ | np_ndarray
125+ | Index [Any ]
126+ ) = None ,
111127 * ,
112128 columns : Grouper ,
113129 aggfunc : (
0 commit comments