I have data looks like this:
order_number ship_distance delivery_fee utilization remaining_multiplier_type
R000001943 3.818 11.25 LOW DISCOUNT
R000002604 5.993 7.00 NaN NaN
R000005277 2.942 7.00 NaN NaN
R000006010 8.289 9.50 NaN NaN
R000010127 3.233 6.00 NaN BASE
I'm trying to round up the value in column ship_distance using the math and numpy.
Using data = math.ceil(data[ship_distance']
I got error TypeError: cannot convert the series to <class 'float'>
When using data = np.ceil(data['ship_distance'])
I don't get the desired result.
Expected result:
order_number ship_distance delivery_fee utilization remaining_multiplier_type
R000001943 4 11.25 LOW DISCOUNT
R000002604 6 7.00 NaN NaN
R000005277 3 7.00 NaN NaN
R000006010 9 9.50 NaN NaN
R000010127 4 6.00 NaN BASE