https://github.com/TomAugspurger/effective-pandas/issues/39