Skip to content

Commit

Permalink
[docs] add docs for selecting rows based on null-ness.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Dec 28, 2020
1 parent 5722fb9 commit e80f57d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.md
Expand Up @@ -37,6 +37,8 @@
* How to perform operations on a subset of rows
* How to filter rows
* How to filter a random subset of rows
* How to select rows where the current column is not null
* How to select rows where the current column is null
* How to move, copy and remove rows
* How to sort rows
* [Columns](/docs/columns)
Expand Down
17 changes: 17 additions & 0 deletions docs/rows.md
Expand Up @@ -65,6 +65,23 @@ The following example uses the file [sample.tsv](https://raw.githubusercontent.c

---

## How to select rows where the current column is not null?

'Null' cells, by default, are cells which contain `None`. This can be changed with `options.null_value`. Null cells can be set with `zd` (set current cell to `None`) or `gzd` (set selected rows in current column to `None`). Null cells are distinguished with a yellow ∅' symbol on the right hand corner. They are distinct from empty cells (which are `''` in columns of string type.)

1. Type `|` followed by *.* to select all rows with empty and null cells in the current column.

---

## How to select rows where the current column is null?

There are several different options:

- Move to an empty or null cell in the column of interest and press `,` to select all empty cells in that column.
- Open a **DescribeSheet** for the current sheet with `Shift+I`. Move to the **nulls** column, and then move to the row which references the source column of interest. Type `zd` to select all null rows for that column.
- For non-numerical columns `z|` followed by **not ColumnName**, will select all empty cells for that column. For numerical columns it will also select cells with `0`.
---

## How to move, copy and remove rows

Command(s) Operation
Expand Down

0 comments on commit e80f57d

Please sign in to comment.