![Stack Overflow](http://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon.png)
I'm trying to write a function to calculate an odds ratio given a string that matches one index in a pandas series associated with a mean value. I want to find the value that matches the string, perform a calculation on that. And then take the average of every value in the pandas series that DOES...