Python 3.9 just came out recently, and I thought it would make sense to check out some of the new features (dict union operators, string remove prefix and suffix, etc.). Of course, doing this requires a Python 3.9 environment. Since new versions of Python may break existing code, I don't want to update my entire … Continue reading You can easily and sensibly run multiple versions of Python with pyenv
Month: October 2020
Python: how to use multiprocessing to finish work faster
It's very common in data science work to have some function or a set of functions that you run in a loop to process or analyze data. When you see a loop that's performing an expensive operation, you should immediately think of (at least) two ways to speed things up. The first is vectorization, which … Continue reading Python: how to use multiprocessing to finish work faster