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

.NET Machine learning
.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.
150 questions
0 comments No comments
{count} votes