spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mendelson, Assaf" <Assaf.Mendel...@rsa.com>
Subject RE: pyspark dataframe codes for lead lag to column
Date Thu, 20 Oct 2016 09:18:23 GMT
Depending on your usecase, you may want to take a look at window functions

From: muhammet paky├╝rek [mailto:mpak85@hotmail.com]
Sent: Thursday, October 20, 2016 11:36 AM
To: user@spark.apache.org
Subject: pyspark dataframe codes for lead lag to column





is there pyspark dataframe codes for lead lag to column?

lead/lag column is something

1      lag   -1        lead     2
2                1                    3
3                2                    4
4                3                    5
5                4                   -1

Mime
View raw message