DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
4+1 =
Submit