This function:
df = pd.DataFrame(np.arange(0,1,0.01), columns = list('a'))
df = df.apply(lambda x: (math.log((x/(1-x)), 2.5)+2*math.e)/(4*math.e))
...gives the error:
cannot convert the series to <class 'float'>
Fiddling with it and reading as much as I can, math.log seems to be returning a series. I just cannot understand why? For clarity, I am simply trying to apply the logit function to each column in the dataframe, taking whatever the value of each cell and using it as x in the function.