Skip to content
Advertisement

apply function of R in python

I have a code in R that works. But I want to re-do it in python. I use R to use apply function in order to calculate minor allele frequency. Can someone tell me how such a code would look in python? I am using pandas to read the data in python.

JavaScript

I have read the file using pandas but I am struggling with the second part.

JavaScript

Insights will be appreciated.

Advertisement

Answer

Use:

JavaScript
Advertisement