I believe df[['B','C']].div(df.A, axis=0)
and df.iloc[:,1:].div(df.A, axis=0)
work.
More Related Contents:
- How to iterate over rows in a DataFrame in Pandas
- Selecting with complex criteria from pandas.DataFrame
- Stacked Bar Chart with Centered Labels
- Combine two pandas Data Frames (join on a common column)
- pandas .at versus .loc
- What does the term “broadcasting” mean in Pandas documentation?
- Remove non-numeric rows in one column with pandas
- How to deal with multi-level column names downloaded with yfinance
- Replace all occurrences of a string in a pandas dataframe (Python)
- Running get_dummies on several DataFrame columns?
- ValueError: numpy.dtype has the wrong size, try recompiling
- Get business days between start and end date using pandas
- Pandas get the most frequent values of a column
- Pandas: compare list objects in Series
- Subtract two columns in dataframe
- Why is pandas.to_datetime slow for non standard time format such as ‘2014/12/31’
- What is the fastest and most efficient way to append rows to a DataFrame?
- Converting pandas column of comma-separated strings into dummy variables
- How to plot different groups of data from a dataframe into a single figure
- pandas group by and find first non null value for all columns
- Seaborn Bar Plot Ordering
- how to concat two data frames with different column names in pandas? – python
- Check if rows in one dataframe exist in another dataframe
- Pandas – Interleave / Zip two DataFrames by row
- Python Pandas – Read csv file containing multiple tables
- How indexing works in Pandas?
- Pandas custom function to find whether it is the 1st, 2nd etc Monday, Tuesday, etc – all suggestions welcome
- What values are valid in Pandas ‘Freq’ tags?
- reading multiple files contained in a zip file with pandas
- How to filter a DataFrame column of lists for those that contain a certain item