Python Data Sampling

Job ID: 31142997

Budget: ₹600 – ₹1,500 INR

This is a case study for a survey customer.

Please write some (Python)-Code to create a representative sample (size = n) of a given user base in DataFrame X, based on the relative size of a given attribute in the “whole population” of DataFrame Y

Example:
For a survey, you need to create list of 5,000 users who have similar age groups as the whole user list

The excel.file has been attached and there are 2 data sheets inside.
Related categories: Python Excel Software Architecture Data Science