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
This signature is used in many getindex() functions. There are two options to solve this:
Create separate functions to handle Symbol and String types respectively.
Throw an error if both types are present in the input argument. This is what DataFrames.jl does.
The text was updated successfully, but these errors were encountered:
chiraganand
changed the title
getindex function to handle the vector of row names passed as union of string and symbol
Disallow Vector{Union{String, Symbol}} to have both types in a single vector
Apr 17, 2024
* Throw an error if both types are present in the input argument. This is what DataFrames.jl does.
My preference is with this because it will be easier to maintain by having less number of functions which behave exactly same except for the argument type. Plus, DataFrames.jl also follows the same approach so it is better to be consistent.
This signature is used in many
getindex()
functions. There are two options to solve this:Symbol
andString
types respectively.The text was updated successfully, but these errors were encountered: