๐งโ๐ณFiltering with YouPrepโข
Last updated
Last updated
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
In the example below, the columns "Year" and "century" will be deleted after the application of the step.
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.
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".
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").
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.
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!