Skip to content

Commit 779fc7c

Browse files
GlenHertzkdpsingh
authored andcommitted
Add docs for values_fill for pivot_wider
1 parent 9464368 commit 779fc7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/docstrings.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,14 +1320,15 @@ julia> @semi_join(df1, df2, "a" = "a")
13201320

13211321
const docstring_pivot_wider =
13221322
"""
1323-
@pivot_wider(df, names_from, values_from)
1323+
@pivot_wider(df, names_from, values_from[, values_fill])
13241324
13251325
Reshapes the DataFrame to make it wider, increasing the number of columns and reducing the number of rows.
13261326
13271327
# Arguments
13281328
- `df`: A DataFrame.
13291329
- `names_from`: The name of the column to get the name of the output columns from.
13301330
- `values_from`: The name of the column to get the cell values from.
1331+
- `values_fill`: The value to replace a missing name/value combination (default is `missing`)
13311332
13321333
# Examples
13331334
```jldoctest
@@ -3409,4 +3410,4 @@ julia> @relocate(df, B:C) # bring columns to the front
34093410
4 │ 9 D 4 B 4 D
34103411
5 │ 10 E 5 C 5 E
34113412
```
3412-
"""
3413+
"""

0 commit comments

Comments
 (0)