Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas shift column

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