Icon

Exercise3

<p><strong>Chapter 7/Exercise 3</strong></p><p>In this exercise, we implement a <em>Table Row to Variable</em> loop to clean a dataset from duplicates and missing values.</p><p>We have access to a dataset (<em>wrong_sales_file.txt</em>) which contains sales records. However, the dataset is incorrect as for some sales it contains two entries: An older record containing a few missing values and a more recent record with all values correctly filled in. The column "load_date" indicates the date of record creation. The goal of this workflow is to clean the dataset by removing the duplicates and missing values. Hence, for each order number, we want to remove the older record and keep only the most recent one.</p><p><strong><em>Note.</em></strong> There are easier ways to clean data from duplicates, for example, using a <em>Duplicate Row Filter</em> or <em>GroupBy </em>node. However, in this workflow we implement a <em>Table Row to Variable</em> loop to demonstrate how it works.</p>

Nodes

Extensions

Links