Icon

Solution

There has been no title set for this workflow's metadata.

There has been no description set for this workflow's metadata.

PART 1: We want to read in the data from a number of Excel sheets that are located within the same workbook - AirBnB Listings.XLSX. Find a node that allows you to generate a list of the sheet names from a given Excel file. How many sheets are in the AirBnB Listings workbook?
PART 2: Next, we want to take the information from each sheet and combine them into a single data table in KNIME. Determine which type of loop is most appropriate for this purpose. Place the start node of the loop in this box.
PART 3: With the loop initiated, what goes inside the loop? Recall, we want to read data from an Excel file where the sheet name changes with each loop iteration. - Dynamically update the sheet name with each iteration. - You must devise a strategy to include the sheet name as a column. Name this column "Location" and ensure it is the first column in the table.
PART 4: End the loop, do not create an iteration column, generate new row IDs. Determine which location charges the highest average price.
Troubleshooting: - If you run into an error reading in the data using the Excel Reader node, navigate to the Transformations tab in the configuration menu and change the field type of id and host_id to strings. Hints (move the black box to reveal): - In the Excel Reader, you must enable "Select sheet with name" for the flow variable to dynamically change the sheet names. - On the Flow Variables tab, you need to update the sheet_name variable. - You need to convert a variable to a table row value. This is done via the Variable to Table Row node. - To combine this single value with every row of the Excel data, use a Cross Joiner.
Attach the sheet name to each row in the table
Cross Joiner
Place the Sheet field first
Column Resorter
End the loop
Loop End
Summarize, mean price by location
GroupBy
Read in data from each Excel sheet
Excel Reader
Convert the sheet variable to a table row
Variable To Table Row
AirBnB Listings sheets
Read Excel Sheet Names
Start the loop
Table Row To Variable Loop Start
Rename Sheetto Location
Column Renamer
Mean price in descending order
Sorter

Nodes

Extensions

Links