Skip to content

Instantly share code, notes, and snippets.

@arcolife
Forked from anonymous/file1.py
Created September 1, 2013 21:28
Show Gist options
  • Save arcolife/6407434 to your computer and use it in GitHub Desktop.
Save arcolife/6407434 to your computer and use it in GitHub Desktop.
import pandas as pd
from pytz import datetime
import gzip, cPickle
from urlparse import parse_qs
f = gzip.open('user_query_tuple.data','rb')
data_dt = cPickle.load(f)
f.close()
f = gzip.open('query_dict.data','rb')
data = cPickle.load(f)
f.close()
pd_tuple = pd.Series(data_dt)
pd_dict = pd.Series(data)
pd_dict[:30]
pd_tuple[:30]
parse_qs(pd_dict[10])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment