2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-13 12:43:48 +00:00
nushell/crates
Andrés N. Robalino 19d5f782cc
Allow dropping columns. ()
`drop` is used for removing the last row. Passing a number allows dropping N rows.
Here we introduce the same logic for dropping columns instead.

You can certainly remove columns by using `reject`, however, there could be cases
where we are interested in removing columns from tables that contain, say, a big
number of columns. Using `reject` becomes impractical, especially when you don't
care about the column names that could either be known or not known when exploring
tables.

```
> echo [[lib, extension]; [nu-core, rs] [rake, rb]]
─────────┬───────────
   lib   │ extension
─────────┼───────────
 nu-core │ rs
 rake    │ rb
─────────┴───────────
```

```
> echo [[lib, extension]; [nu-core, rs] [rake, rb]] | drop column
─────────
   lib
─────────
 nu-core
 rake
─────────
```
2021-02-25 15:37:21 -05:00
..
nu-ansi-term add nu-ansi-term () 2021-02-22 12:33:34 -06:00
nu-cli add nu-ansi-term () 2021-02-22 12:33:34 -06:00
nu-command Allow dropping columns. () 2021-02-25 15:37:21 -05:00
nu-data Remove parking_lot crate reference from nu-data () 2021-02-23 22:21:31 +13:00
nu-engine Make sure CurDir is filtered out in absolutize. () 2021-02-23 22:22:17 +13:00
nu-errors add nu-ansi-term () 2021-02-22 12:33:34 -06:00
nu-json Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu-parser Remove parking_lot crate reference from nu-data () 2021-02-23 22:21:31 +13:00
nu-plugin Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu-protocol Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu-source Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu-stream Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu-table return string from draw_table instead of printing directly () 2021-02-23 22:25:49 +13:00
nu-test-support Extract .nu-env tests and more granularity () 2021-02-18 20:24:27 -05:00
nu-value-ext Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_binaryview add nu-ansi-term () 2021-02-22 12:33:34 -06:00
nu_plugin_chart Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_fetch Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_from_bson Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_from_sqlite Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_inc Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_match Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_post Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_ps Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_s3 Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_selector Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_start Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_sys Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_textview add nu-ansi-term () 2021-02-22 12:33:34 -06:00
nu_plugin_to_bson Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_to_sqlite Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_tree Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00
nu_plugin_xpath Bump to 0.27.1 () 2021-02-18 18:54:48 +13:00