Icon

02 Flow Variables and Components

Flow Variables and Components - Exercise

This workflow shows a hands-on exercise in the L2-DS Introduction to KNIME Analytics Platform for Data Scientists - Advanced course

Annotations and comments
  • Task 1: Flow Variables 1. Read the New York City Airbnb data by executing the CSV Reader node 2. Count the number of rows by host id 3. Sort the aggregated data descending by the count of rows 4. Transform the top row into a flow variable 5. Use a Row Filter node to filter the original dataset. Overwrite the filtering pattern with the host_id flow variable.
  • Task 2: Creating a shared component 1. Continue working with the New York City Airbnb data and create a Value Selection Configuration node to select one neighborhood group in the data 2. Filter the data based on the selected neighborhood group 3. Create an Integer Configuration node to select the maximum price per night 4. Filter the data in the selected neighborhood group to the rooms and apartments below or equal to this price per night. Notice that you need to type an arbitrary number in the upper bound field in order to make the configuration option appear in the Flow Variables tab. 5. Encapsulate the configuration nodes and the Row Filter nodes into a component. Make sure that your component has a data output port!
  • Task 3: Using a shared component 1. Drag and drop the Interactive Data Cleaning component from the KNIME Hub or from the EXAMPLES Server 2. Connect it to the CSV Reader node, execute, and open its interactive view 3. Apply automatic type guessing, remove rows with missing values, and remove duplicate rows. Click Apply and Close.
  • Global Data Superstore
  • Max $500
  • filter by category
  • Filter by $500
  • Select category
  • Count by RowID
  • css_sidebar
  • Column name(s)
  • number of selected columns
  • Define active switch port
  • Filter selected columns
  • selected
  • Get data types
  • Remove "(replace with X)", if present
  • Find name of numeric factory
  • Numbers factories
  • Strings factories
  • Collection of selected column names
  • Configure bypass switch
  • Empty table check
  • Regex pattern to find all selected columns
  • css_header
  • Header
  • hide_border
  • Title size
  • Title text
  • KNIME logo image in base64 format.
  • Check for no columns
  • Message text
  • Numbers
  • Strings
  • Outliers
  • Row selection strategy
  • Guide
  • Separator line
  • Empty input table
  • Filter RowID
  • CountID

Nodes

Extensions

Links