Translating R code to Python -- finish and debug

Job ID: 33340757

Budget: $30 – $250 USD

I have several functions in R that I am translating to Python. I would like someone to help me finish the code. Requered tasks: debugging, coding in Python.