Reusable Charting with D3
I love the D3js framework, however it’s not initially intuitive how to create charts that have reusable components. After working extensively with this framework over the last few months, I’ve found a good way to introduce a little more extensibility into the default approach. For the following examples we use …
AirBnB Visualization
This is a followup visualization from my post on analyzing Boston’s AirBnB. The below embedding is less than perfect, so please check it out fullscreen. If it’s not rendering well for you, this is what you should see. The Python to convert the raw data to geojson is super straightforward. …
Digging into my Discord
I run a Discord server for my friends. We’ve essentially given up texting and now use Discord for virtually all communication. This server has been running since about January 2016, and we now have around 75 users and collectively we’ve sent almost 200,000 messages. I scraped all of this data …
Virus Propagation and Markov
Khan Academy Virus Propagation Part of the interview process at Khan Academy is to complete their interview project. This project deals with virus propagation through a directed network. We will be using the terms “graph” and “network” interchangeably, but I’m referring to the same thing for both. From a high …
Integrating SMS with Twilio
Let’s say that you need to integrate SMS capabilities into your project, and let’s also say that you’re using python. You can use Twilio to very easily integrate texts directly into your application. Setting Up Twilio First though, you’ll need a Twilio account. Go to their signup page, and create …
Political Boundaries and Simulations
Adapted as a talk for the Boulder Python Meetup Download archive here, or from gitlab.com/thedataleek/politicalboundaries. Press the space-bar to proceed to the next slide. See here for a brief tutorial Expand Code
One Dimensional Maps
Creating one-dimensional maps is a very easy and straightforward process that can be used to explore chaotic behavior. Given some function we take an initial value and use the iterative process $$ x_{n+1} = f\left(x_n\right) $$ One popular map to explore is the Logistic Map, defined as $$ x_{n+1} = …
An Introduction to Plotting in Python
After having some Applied Math friends rant to me at how awful plotting was in Python I decided to write up a quick guide to hopefully change their minds. Numpy This assumes a basic familiarity with numpy, although I’ll go over the basics really quickly just in case. The syntax/API …