I searched for the solution, I found solution in r programming, I want solution in python.
I got this solution from stackoverflow,as like this I need to get in python