Skip to content

Instantly share code, notes, and snippets.

Created September 1, 2013 21:26
Show Gist options
  • Save anonymous/6407418 to your computer and use it in GitHub Desktop.
Save anonymous/6407418 to your computer and use it in GitHub Desktop.
Pasted from IPython
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