Skip to content

Mutate columns that have spaces in names #10399

Answered by cpcloud
jjAtNxtPt asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, like this:

.mutate({"SOM COL": _["SOM COL"].fill_null(0) + 200})
.mutate(**{"SOM COL": _["SOM COL"].fill_null(0) + 200})

These two lines have equivalent behavior.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jjAtNxtPt
Comment options

Answer selected by cpcloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants