Tag: python

If you’ve ever watched Major League Baseball, one of the feature points of the sport is the batting line-up that each team decides upon before each game. Traditional baseball logic tells us that speedy, reliable hitters like Trea Turner should …

Does batting order matter in Major League Baseball? A simulation approach Read More »

Tagged with: , , , ,

Last week, Antonio S. Chinchón made an interesting post showing how to create a traveling salesman portrait in R. Essentially, the idea is to sample a bunch of dark pixels in an image, solve the well-known traveling salesman problem for …

Traveling salesman portrait in Python Read More »

Tagged with: , , , ,

The Python 2 vs. Python 3 divide has long been a thorn in the Python community’s side. On one hand, Python package developers face the challenge of supporting two incompatible versions of Python, which is time that could be better …

Python 2.7 still reigns supreme in pip installs Read More »

Tagged with: , ,

Some of you might have been wondering what the heck I’ve been up to for the past few months. I haven’t been posting much on my blog lately, and I haven’t been working on important problems like solving Where’s Waldo? …

Introducing TPOT, the Data Science Assistant Read More »

Tagged with: , , , , ,

Remember that Python usage survey that went around the interwebs late last year? Well, the results are finally out and I’ve visualized them below for your perusal. This survey has been running for two years now (2013-2014), so where we …

Python usage survey 2014 Read More »

Tagged with: , ,

Want to learn more about data visualization with Python? Take a look at my Data Visualization Basics with Python video course on O’Reilly. It’s been well over a year since I wrote my last tutorial, so I figure I’m overdue. …

How to make beautiful data visualizations in Python with matplotlib Read More »

Tagged with: , , , ,

Have you ever found yourself searching for a statistics package in Python, but it just isn’t available? This is the biggest reason I’ve heard when my colleagues say they’re unwilling to make the switch from R to Python for statistical …

Filling in Python’s gaps in statistics packages with Rmagic Read More »

Tagged with: , , , , , ,

I finally got around to finishing up this tutorial on how to use pandas DataFrames and SciPy together to handle any and all of your statistical needs in Python. This is basically an amalgamation of my two previous blog posts …

Statistical analysis made easy in Python with SciPy and pandas DataFrames Read More »

Tagged with: , , , , , , , , , , , , , , , ,

Per a recommendation in my previous blog post, I decided to follow up and write a short how-to on how to use pandas to process data from multiple replicate runs in Python. If you do research like mine, you’ll often …

Using pandas DataFrames to process data from multiple replicate runs in Python Read More »

Tagged with: , , , , ,

As promised, here’s the IPython Notebook tutorial I mentioned in my introduction to IPython Notebook. Downloading and installing IPython Notebook You can download IPython Notebook with the majority of the other packages you’ll need in the Anaconda Python distribution. From …

A short demo on how to use IPython Notebook as a research notebook Read More »

Tagged with: , , , , , , , , , , , , ,