Skip to content

Instantly share code, notes, and snippets.

PJ Trainor trainorpj

Block or report user

Report or block trainorpj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
trainorpj /
Created Aug 9, 2019
matplotlib utilities for better plotting
# copy/paste everything below here
# --------------------------------
import matplotlib.pyplot as plt
# ggplot styles'ggplot')
# ggplot first six default colors
_gg_colors = ["#F8766D", "#B79F00", "#00BA38", "#00BFC4", "#619CFF", "#F564E3"]
trainorpj /
Created Mar 3, 2019
extending pandas dataframes
import pandas as pd
class PJDF(pd.DataFrame):
def __init__(self, *args, **kwargs):
super(PJDF, self).__init__(*args, **kwargs)
def _constructor(self):
return PJDF
trainorpj /
Last active Jan 14, 2016
Careers of Directors

Note this is a work in progress. The most updated version is on my github.

Directors wear many hats when making a film. They work with the actors, the producers, the cinematographers, the editors, and pretty much anyone else on the set.

As one might guess, directors are not all the same. They have varied careers and styles that show in the credits. My goal was to make a snapshot of several directors, to give an impression as to what they did in the film. Each dot represents the role a director played in a film, going from top to bottom it's director, writer, editor, producer, actor.

Hover over a dot to get more info about that film.

You can’t perform that action at this time.