Iterating over Numpy arrays is non-idiomatic and quite slow. In all cases, a vectorized approach is preferred if possible, and it is often possible.
Tag: python
Some points about Numpy Performance
Making GIF animations with Transitions
Simple web scraper
From time to time there are situations where it is helpful to quickly rip some information from a group of web pages. For example, I was doing some keyword analysis and wanted to know how many Google results there are for each keyword in my list (both exact and broad matches). The answer is right there on the page when you do the Google search, so all there is too it is to automate the process of doing queries.