Skip to content

Commit c447d1b

Browse files
Update source/wrangling.md
Co-authored-by: Joel Ostblom <[email protected]>
1 parent a6c93a5 commit c447d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/wrangling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ and region, just as we specified!
15581558

15591559
To instead create an entirely new data frame, we can use the `assign` method and specify one argument for each column we want to create.
15601560
In this case we want to create one new column named `maximum`, so the argument
1561-
to `assign` begins with `maximum = `.
1561+
to `assign` begins with `maximum= `.
15621562
Then after the `=`, we specify what the contents of that new column
15631563
should be. In this case we use `apply` just as we did in the previous section to give us the maximum values.
15641564
Remember to specify `axis=1` in the `apply` method so that we compute the row-wise maximum value.

0 commit comments

Comments
 (0)