🧑‍🍳Filtering with YouPrep™

Filter with YouPrep™

Overview

When you are building your story, you might want to filter your data to display only a part of them. Previously, you did it two ways: the query in mongo and with postprocess. Thanks to all the latest releases, you are able to filter your data without any pain thanks to the YouPrep™. You can apply the following operations to your dataset:

  • Delete columns

  • Keep columns

  • Filter Rows

  • Top N rows

  • Argmax

  • Argmin

Filter widget menu
YouPrep Filter operations

Examples

Delete columns

In the example below, the columns "Year" and "century" will be deleted after the application of the step.

Keep columns

In the example below, there is a "Keep columns" that has been added on 3 columns. Thus all other columns have been delete, and there only anymore the 3 selected columns.

Filter rows

In the example below, we'r adding a "Filter" step in order to keep only data for which the "Type" (column) is corresponding to "Boat".

TOP N Rows

In the example below, we'r adding a "Top N rows" step, that will allow to select the top 3 rows for which the "Fatal" column is high (sorting by "desc").

Argmax

In the example below, there is an "Argmax" step (last one) that has been added, and that allow to get the row with the higher value in the "Fatal" column.

Argmin

In the example below, we'r adding an "Argmin" step that allows to get the row with the smaller value in the "Fatal" column.

Do not hesitate to read the weaverbird documentation if you need any further informations on the YouPrep!

Last updated