-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Duplicate index with FloatIndex giving 'ValueError: Length mismatch' #7143
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
Comments
hmm...would say that's a bug (also your first example should return a Series). |
about the Series, that is indeed how it is with integer indices |
hm duplicate fun i'll take this ... @jreback is this a blocker? |
oh nvm i c u marked as 0.14.1 |
sure |
this has been an enlightening experience. @jreback you are a hero for squashing all of these duplicate indexing bugs. couple of things:
if you remove that line then i see two ways to deal with this:
I'll submit a PR for the |
Not certain if this is a bug or defined behaviour (but then the error message is not clear in any case).
In 0.13.1:
In master, both (
df.loc[0.2]
anddf.loc[0.2, 'a']
) give this error message. Wile for integer index, this works.The text was updated successfully, but these errors were encountered: