Python Df Z Score Function In R