Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas divide multiple columns by one column

df[['B','C']].div(df.A, axis=0) and df.iloc[:,1:].div(df.A, axis=0)
 
PREVIOUS NEXT
Tagged: #pandas #divide #multiple #columns #column
ADD COMMENT
Topic
Name
4+1 =