Icon

Days with Price Changes

Days with Price Changes
Days with Price ChangesYou are using KNIME to monitor the daily price of a product online. After using the Line Plotnode to visualize the daily prices you have already gathered, you notice that they are oftenconstant for a certain number of days before changing again. You want to create a newcolumn in the price data you have at hand, named "Change", such that its value is 1 if adaily price changed with respect to the previous day, or 0 if it remained unchanged. For thefirst daily price in the data, the "Change" value should be 1. read daily_prices fileadd valuefrom rprevious linerule to changefilter previous line CSV Reader Lag Column Rule Engine Column Filter Days with Price ChangesYou are using KNIME to monitor the daily price of a product online. After using the Line Plotnode to visualize the daily prices you have already gathered, you notice that they are oftenconstant for a certain number of days before changing again. You want to create a newcolumn in the price data you have at hand, named "Change", such that its value is 1 if adaily price changed with respect to the previous day, or 0 if it remained unchanged. For thefirst daily price in the data, the "Change" value should be 1. read daily_prices fileadd valuefrom rprevious linerule to changefilter previous line CSV Reader Lag Column Rule Engine Column Filter

Nodes

Extensions

Links