The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Date_diff different rows
christian_feise
Member Posts: 5 Learner III
Hello rapidminer community,
i am looking for a way to use the date_diff function in the generate attributes operator for two different rows. I have data for products with an ongoing time stamp and want to generate a new column that shows the difference between the timestap of row x and row x-1
for example
1 16:11; 00:00
2 16:14; 00:03
3 16:30; 00:16
4 16:52; 00:22
any help is appreciated. thank you very much!
Tagged:
0
Best Answer
-
Thomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn
@christian_feise check out the Lag operator in the Value Series extension. You can create a second attribute column by lagging the first column, then use a Generate Attributes operator by doing date_diff(attribute1,attribute2)
2
Answers
Thanks Thomas, your proposed solution works just fine,
have a nice day!