Share via

IDataView Lag Transformation

super richmann 1 Reputation point
2022-12-29T12:45:59.263+00:00

Is there a way to transform an IDataView so that it will include values from previous rows in the same row?
for example:
Source IDataView:
Col
1
2
3
4

Resulting IDataView :
Col ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎Col1
1 ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‏‏‎ ‎‏‏‎ ‏‏‎ ‎‏‏‎ ‎‎‎null
2 ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎1
3 ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‏‏‎ ‎‏‏‎ ‎‎2
4 ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‏‏‎ ‎‏‏‎ ‎‎3
null ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎4

Developer technologies | .NET | .NET Machine Learning
Developer technologies | .NET | .NET Machine Learning

.NET: Microsoft Technologies based on the .NET software framework. Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.

0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.