Understanding the Reaction to Amazon Prime Air (Or: Tapping Twitter’s Firehose for Fun and Profit with pandas)

amazon-prime-air

On Cyber Monday eve, Jeff Bezos appeared in a 60 Minutes segment and revealed to the world that he’s been working on an experimental effort called Amazon Prime Air. The general idea behind Amazon Prime Air is that Amazon may one day deliver relatively lightweight items directly to your doorstep in less than 30 minutes after you order via a fleet of small unmanned aerial vehicles. The following short video summarizes the concept in case you’ve somehow missed it.

Within moments of the announcement, I tapped Twitter’s firehose for the keyword query “Amazon” by employing a couple of recipes from the Twitter Cookbook, because this seemed like an ideal opportunity to capture a relatively large volume of tweets laden with emotional reaction. Over the course of the next few hours, I collected ~125,000 tweets, analyzed them in IPython Notebook with pandas, and later presented these findings as an online mini-workshop. (A video archive of the entire workshop is now available in case you missed it last week.)

Rather than rehashing the results here, I’d rather invite you to spend a few minutes reviewing the notebook. It’s easy to follow along with, features lots of narrative, and includes output from running the code. The analysis techniques range from basic times-series analysis with pandas to rudimentary natural language processing toward the end, so there should be a little something in there for everyone.

As always, questions and comments are welcome. Enjoy.

About these ads

2 Comments on “Understanding the Reaction to Amazon Prime Air (Or: Tapping Twitter’s Firehose for Fun and Profit with pandas)

  1. This is wonderful, Matthew. I’m looking forward to working through the notebook.

    I’m currently reading your book. Your skill, passion and sincerity for teaching others what you know show through every page of the book.

    • I am so glad to hear it, and I really do appreciate that you shared this comment. (Positive feedback can be hard to come by, but when it does, it usually makes my day.) Please keep me in the loop, and let me know if there’s ever any way that I can help…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 4,583 other followers

%d bloggers like this: