Skip to main content

shift

Returns a column with the name New Column by shifting the index of the selected column by desired number of periods.

Basic Usage

:: shift(colname,2)

Output

Returns a column with the name New Column

Function Parameters

  • argument 1 : Name of the column
  • argument 2 : desired number of shifts

info
  • Minimum arguments needed are 2
  • Maximum arguments is 2
  • First argument must be a column name

Get the power of futuristic Data & AI Platform for your enterprise.