@@ -6951,7 +6951,7 @@ def sort_index(
69516951
69526952 def value_counts (
69536953 self ,
6954- subset : Sequence [ Hashable ] | None = None ,
6954+ subset : IndexLabel | None = None ,
69556955 normalize : bool = False ,
69566956 sort : bool = True ,
69576957 ascending : bool = False ,
@@ -7075,8 +7075,8 @@ def value_counts(
70757075 if normalize :
70767076 counts /= counts .sum ()
70777077
7078- # Force MultiIndex for single column
7079- if is_list_like (subset ) and len (subset ) == 1 :
7078+ # Force MultiIndex for a list_like subset with a single column
7079+ if is_list_like (subset ) and len (subset ) == 1 : # type: ignore[arg-type]
70807080 counts .index = MultiIndex .from_arrays (
70817081 [counts .index ], names = [counts .index .name ]
70827082 )
@@ -8986,7 +8986,7 @@ def pivot_table(
89868986 sort = sort ,
89878987 )
89888988
8989- def stack (self , level : Level = - 1 , dropna : bool = True , sort : bool = True ):
8989+ def stack (self , level : IndexLabel = - 1 , dropna : bool = True , sort : bool = True ):
89908990 """
89918991 Stack the prescribed level(s) from columns to index.
89928992
@@ -9291,7 +9291,7 @@ def explode(
92919291
92929292 return result .__finalize__ (self , method = "explode" )
92939293
9294- def unstack (self , level : Level = - 1 , fill_value = None , sort : bool = True ):
9294+ def unstack (self , level : IndexLabel = - 1 , fill_value = None , sort : bool = True ):
92959295 """
92969296 Pivot a level of the (necessarily hierarchical) index labels.
92979297
0 commit comments