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
after
insertcols!
Currently you have to do this if you want to insert columns after a certain column:
df = DataFrame(a=1:2, b=3:4, c=5:6) i = findfirst(==(:b), propertynames(df)) insertcols!(df, i+1, :x => 7:8)
It would be nice if there were a boolean keyword argument after which defaults to false.
false
The text was updated successfully, but these errors were encountered:
Note that you can just write columnindex(df, :b) + 1. Other than that it could be added in the future.
columnindex(df, :b) + 1
Sorry, something went wrong.
Re-ordering data more broadly is something Stata does really well. An after keyword is used heavily there.
Successfully merging a pull request may close this issue.
Currently you have to do this if you want to insert columns after a certain column:
It would be nice if there were a boolean keyword argument
after
which defaults tofalse
.The text was updated successfully, but these errors were encountered: