Answers for "how to multiply two column values based on certain column condition in pandas"

3

multiply column of dataframe by number

#Multiply the values of column_name by 100
df.column_name.mul(100)
Posted by: Guest on August-06-2021
1

python multiple conditions in dataframe column values

df.loc[(df['Salary_in_1000']>=100) & (df['Age']< 60) & (df['FT_Team'].str.startswith('S')),['Name','FT_Team']]
Posted by: Guest on August-25-2021

Code answers related to "how to multiply two column values based on certain column condition in pandas"

Python Answers by Framework

Browse Popular Code Answers by Language