Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas shift one column

df['PREV_CLOSE']=df['Close'].shift(1)
df
 
PREVIOUS NEXT
Tagged: #pandas #shift #column
ADD COMMENT
Topic
Name
4+4 =