Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

subtract from dataframe column

#To subtract 1 from a specific column of a dataframe
df.column_name.sub(1)
 
PREVIOUS NEXT
Tagged: #subtract #dataframe #column
ADD COMMENT
Topic
Name
1+7 =