#!/usr/bin/env python # coding: utf-8 # In[14]: from perspective import psp import pandas as pd import numpy as np import datetime N = 1000 # In[15]: dft = pd.DataFrame({ 'A': ['spam', 'eggs', 'spam', 'eggs'] * 6 * N, 'B' : ['alpha', 'beta', 'gamma'] * 8 * N, 'C' : [np.random.choice(pd.date_range(datetime.datetime(2012,1,1),datetime.datetime(2013,1,3))) for i in range(24 * N)], 'D' : np.random.randn(24 * N), 'E' : np.random.random_integers(0,4,24 * N) }) # In[16]: psp(dft)