0

I do a fair bit of data analysis using Python. I find that I often end up repeating the same analysis for different input variables (e.g., looking at GDP and then seeing if the answer changes under GPI) or maybe using a different aggregation technique (e.g., mean vs median).

I was thinking about putting together a python framework to help apply various variations to an analysis but was wondering if there is an existing python library accomplishes this.

0

As in other programming languages, one usually accomplishes such a thing in Python by writing a loop or function. For example, if you have an analysis that involves taking the mean of something with numpy.mean, you can replace np.mean with f and wrap the analysis code in a new function that has f as a parameter.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.