Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: No overload variant of "__getitem__" of "_iLocIndexerSeries" matches argument type "ndarray[Any, dtype[signedinteger[_64Bit]]]" #85

Closed
bashtage opened this issue Jul 4, 2022 · 0 comments · Fixed by #87

Comments

@bashtage
Copy link
Contributor

bashtage commented Jul 4, 2022

import pandas as pd
import numpy as np

indices = np.array([0,1,2,3], dtype=np.int64)
values_s = pd.Series(np.arange(10),name="a")
values_s.iloc[indices]

The error is

 error: No overload variant of "__getitem__" of "_iLocIndexerSeries" matches argument type "ndarray[Any, dtype[signedinteger[_64Bit]]]"
note: Possible overload variants:
note:     def __getitem__(self, int) -> Any
note:     def __getitem__(self, Union[Index, slice]) -> Series[Any]
@Dr-Irv Dr-Irv mentioned this issue Jul 4, 2022
2 tasks
@Dr-Irv Dr-Irv closed this as completed in #87 Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant