Sampling Methods In Python Explanation