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
If you have a DataFrame and try to access index zero (common coming from python), like so:
df = DataFrame(:A => 1:150)
df[0:50, :]
It correctly gives bound error, but says attempt to access String. I was wondering what the logic behind this is.
When indexing zero-th element for normal array in julia, it returns BoundsError: attempt to access 150-element UnitRange{Int64} at index [0].
Responding with the index [0] immediately reminds me of my mistake.
The text was updated successfully, but these errors were encountered:
I saw #2123 but this was for OffsetArray.jl.
If you have a DataFrame and try to access index zero (common coming from python), like so:
It correctly gives bound error, but says
attempt to access String
. I was wondering what the logic behind this is.When indexing zero-th element for normal array in julia, it returns
BoundsError: attempt to access 150-element UnitRange{Int64} at index [0]
.Responding with the index [0] immediately reminds me of my mistake.
The text was updated successfully, but these errors were encountered: