Auto-generate markdown command docs (#4451)

* Finish updating

* a couple improvements

* Update renames

* cleanup examples
This commit is contained in:
JT
2022-02-13 21:22:51 -05:00
committed by GitHub
parent 06f5affc0b
commit 8c0a2d3c15
478 changed files with 7676 additions and 8045 deletions

View File

@ -1,28 +1,33 @@
# drop
---
title: drop
layout: command
version: 0.59.0
---
Remove the last number of rows or columns.
## Usage
```shell
> drop (rows) <subcommand> {flags}
```
## Signature
## Subcommands
* drop column - Remove the last number of columns. If you want to remove columns by name, try 'reject'.
```> drop (rows)```
## Parameters
* `(rows)` starting from the back, the number of rows to remove
## Flags
* -h, --help: Display this help message
- `rows`: starting from the back, the number of rows to remove
## Examples
Remove the last item of a list/table
```shell
> echo [1 2 3] | drop
```
Remove the last 2 items of a list/table
Remove the last item of a list/table
```shell
> echo [1 2 3] | drop 2
```
> [0,1,2,3] | drop
```
Remove zero item of a list/table
```shell
> [0,1,2,3] | drop 0
```
Remove the last two items of a list/table
```shell
> [0,1,2,3] | drop 2
```