I have a Panda and want to do a calculation based on an existing column. However, the apply. function is not working for some reason.
It's something like letssay
df = pd.DataFrame({'Age': age, 'Input': input})
and the input column is something like [1.10001, 1.49999, 1.60001] Now I want to add a new column to the Dataframe, that is doing the following:
- Add 0.0001 to each element in column
- Multiply each value by 10
- Transform each value of new column to int