You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also wonder why we raise ValueError when a key is not found instead of KeyError or at least some kind of LookupError? I remember looking at StackOverflow for this, but I don't remember the reasoning anymore.
>>>arr['b4']
ValueError: 'b4'isnotavalidlabelforanyaxis:
a [2]: 'a0''a1'b [3]: 'b0''b1''b2'
The text was updated successfully, but these errors were encountered:
Unsure which though.
Compare this with dict:
I also wonder why we raise ValueError when a key is not found instead of KeyError or at least some kind of LookupError? I remember looking at StackOverflow for this, but I don't remember the reasoning anymore.
The text was updated successfully, but these errors were encountered: