I have a dataframe:
signal value
weak 100
strong 20
neutral 300
How can I make this calculation:
(weak(100) - strong(20)) / weak+strong+neutral
The result should be: 0.19
I have a dataframe:
signal value
weak 100
strong 20
neutral 300
How can I make this calculation:
(weak(100) - strong(20)) / weak+strong+neutral
The result should be: 0.19
I am not sure how exactly you want this to be written but assuming your data frame name is
dfyou can do one of: