using iloc to query a pandas dataframe, why pylance is complaining slice is "slice" is incompatible with "int"?
I read it like this : "you put brackets so i call get_item, and inside should be an index (idx), and this index should be of type : int | Tuple[IndexType | MaskType, IndexType | MaskType | int] however, slice is compatible with none of it."
Have you tried replacing :
with ,
? it says he expect a Tuple of int, maybe that helps?
But you say it works? so it may be an issue with pylance, no?
== Edit ==
The answer is : df.iloc[1:,:]