Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to multiply integer value with float values in python

df['new_column'] = (int_value) * (df['old_column'].values)
example:
df['weight'] = (0.2)* (df['rank'].values)
 
PREVIOUS NEXT
Tagged: #multiply #integer #float #values #python
ADD COMMENT
Topic
Name
2+2 =