We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found the following case is the perfect case to raise ArgumentError(). What do you think of it?
function insertcols!(df::DataFrame, col_ind::Int, name_col::Pair{Symbol, <:AbstractVector}; makeunique::Bool=false) name, item = name_col 0 < col_ind <= ncol(df) + 1 || throw(BoundsError()) size(df, 1) == length(item) || size(df, 2) == 0 || error("number of rows does not match") if hasproperty(df, name)
The text was updated successfully, but these errors were encountered:
Sure - feel free to open a PR to improve both throw(BoundsError()) and error.
throw(BoundsError())
error
Sorry, something went wrong.
fixed
No branches or pull requests
I found the following case is the perfect case to raise ArgumentError(). What do you think of it?
The text was updated successfully, but these errors were encountered: