I am working with survey data in Python. There is a weighting variable based on age, gender and region which should be included in the calculations (to make the data representative of the population).
The weighting variable is a simple decimal number, most often between >= 0.9 and <= 1.2.
I don't know how to include it in simple calculations. Most of the variables have "Yes/no/not sure"-values or other categories.
For example, how can I include the weighting variable here:
survey['my_variable'].value_counts(normalize=True)