Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

.all() python numpy

df = pd.DataFrame({'Price':[1, 1.2, 1.6, 2.4, 3.5]})
if df['Price'].all() < 10:
    df['Price'] = df['Price'] * 10
print(df)

#output
#
#   Price
#0	10.0
#1	12.0
#2	16.0
#3	24.0
#4	35.0
 
PREVIOUS NEXT
Tagged: #python #numpy
ADD COMMENT
Topic
Name
9+2 =