Created
September 1, 2013 21:26
-
-
Save anonymous/6407418 to your computer and use it in GitHub Desktop.
Pasted from IPython
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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