1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-24 05:32:42 +01:00
nushell/docs/commands/dfr_set.md
Justin Ma c0a1d18e3d
update , regenerate commands' docs and update make_docs script ()
* feat: update , regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

26 lines
426 B
Markdown

---
title: dfr set
layout: command
version: 0.59.0
---
Sets value where given mask is true
## Signature
```> dfr set (value) --mask```
## Parameters
- `value`: value to be inserted in series
- `--mask {any}`: mask indicating insertions
## Examples
Shifts the values by a given period
```shell
> let s = ([1 2 2 3 3] | dfr to-df | dfr shift 2);
let mask = ($s | dfr is-null);
$s | dfr set 0 --mask $mask
```