Closed brendon9x closed 3 months ago
:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:
@cigrainger @josevalim – this repo was a joy to work in. The contributor docs were great and the mix tasks worked flawlessly (and tests are super fast). I wouldn't have been able to push this over the line if any of that wasn't true. Thanks for the awesome project.
This PR adds a new
keep
option to themutate
andmutate_with
functions in the DataFrame module. This option allows users to control which columns are retained in the output DataFrame after a mutation operation. Closes #965Examples of usage
Regular DataFrame:
Grouped DataFrame:
Considerations
:all
or:none
) instead of a boolean for maximum forwards compatibility.