This week's book giveaways are in the Jython/Python and Object-Oriented programming forums. We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line! See this thread and this one for details.
My concern is that the nested for loop here might adversely affect performance and that there would be a faster, more memory-efficient way to perform this operation. Are there any suggestions? Or are there any common libraries out there that perform this function that I've overlooked?
First, you drop a couch from the plane, THEN you surf it. Here, take this tiny ad with you:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps