application_vnd.jupyter.stderr_output_1.png
from pandas.tools.plotting import scatter_matrix

from pandas.tools.plotting import scatter_matrix

data = pd.read_csv('../input/DSL-StrongPasswordData.csv', header=0)
data = data.reset_index()

hold_cols = [x for x in data.columns if x.startswith('H.')]
switch_cols = [x for x in data.columns if x.startswith('UD.')]
timing_cols = [x for x in data.columns if x.startswith('H.') or x.startswith('UD.')]
def get_subject_data(*subjects, include_subject=False):
    """ Returns the timing information for each trial of the given user
        The delays alternate between key hold time and delay to the next key
    """
    cols = timing_cols + (['subject'] if include_subject else [])
    return data.ix[data.subject.isin(subjects), cols]
s24 = get_subject_data('s002', 's004', include_subject=True)

from pandas.tools.plotting import scatter_matrix
_ = scatter_matrix(get_subject_data('s052').ix[:, switch_cols], alpha=0.2, figsize=(12, 12), diagonal='kde')
_ = scatter_matrix(get_subject_data('s052').ix[:, hold_cols], alpha=0.2, figsize=(12, 12), diagonal='kde')