For example, if I have:
A B
2 4
3 5
6 2
I would want a result of:
log 2 (4)
log 3 (5)
log 6 (2)
I've tried result = math.log(B, A), however this return an error of:
Cannot convert the series to <type 'float'>
I've had a look around at other questions but couldnt find anything related.
Is this possible in pandas, or would I have too approach this using something such as numpy?
I also had a shot at:
result = math.log(B, A).astype(float)
however this gave the same error, unfortunately