Some of the stuff I’ve run across in the last few months that I consider cool:
I had done some mapping using Python and the Folium package. Folium is a wrapper for Leaflet.JS maps. Lately, I’ve been looking at more direct use of Leaflet, especially to allow me to use the “imageOverlay” function. That permits me to generate a graphic that a browser can load (say, in PNG), and overlay it on a map given the specification of latitude and longitude for two of its corners. I can also specify an opacity.
On the computational finance side of things, some time ago I scraped the Wikipedia page on the Standard and Poor’s 500 to get the listing of stock ticker abbreviations. That serves as the basis of the stocks I have some automated tracking tools operating on. I noticed that some of the ticker names in that list no longer get data updates. Companies change, and so does S&P 500 membership. A search took me to Pollock’s S&P 500 dataset code. I had to uncomment the line in the “execute” function in constiuents.py to actually download a file from the Standard and Poor’s website to get it to work. I wrote a few support functions so that if I ask for an S&P 500 list, it will check to see if the downloaded file is more recent than one hour, and if it isn’t it will update that. I can get either a Pandas dataframe with the ticker names and their ancillary financial data, or a simple list like what I’m already using in my other code.