I am a beginner in the field of statistics and data science, so request you to treat me kindly.
I have to solve the following problem in python:
Problem statement