Tag Archives: USA

George Washington as a Constitutional Word Cloud

Is George Washington better looking on the dollar bill or represented by a word cloud built with the text of The Constitution of the USA?

A colleague recently asked me that exact question. If you want to be taken seriously in the data science world, you better be able to answer something like this!

I decided that it would be fun to show off a Python package by Andreas Mueller called word_cloud (here) to make a fun image with the text of the Constitution and an image of one of the Founding Fathers.

I must warn you, word clouds are like pie charts people like the way they look but clouds don’t provide much information. That said, this package is really neat because it allows you to easily turn text into images utilizing masks, colors, and numpy!

I’ll keep this post short, what you want to do is simple:

  1. Select an image which you would like to mimic in both color and shape
  2. Read your image into Python using numpy
  3. Read your text into Python using open() and read()
  4. Make your word cloud!

Continue reading

US Immigration Enforcement – Part 1

Trend of US Immigration Enforcement

In the coming months I’ll be digging into the immigration enforcement data posted on data.world. I encourage anyone to take this data and either add to the project or to do something on their own. I will be bringing in external data sources to merge as well (which I did for this first plot).

If you’re only here for a “high-level nugget” of information, the basic thing you can see is:

Things have changed since 1925!

Continue reading