Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. for s in range(1, 13):
  2. train_sc_df['shift_{}'.format(s)] = train_sc_df['trade_price_idx_value'].shift(s)
  3. test_sc_df['shift_{}'.format(s)] = test_sc_df['trade_price_idx_value'].shift(s)
  4.  
  5. train_sc_df.head(13)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement