Created
January 29, 2015 16:14
-
-
Save findmyway/b46a0d94e56b64f3be7e to your computer and use it in GitHub Desktop.
Data Visualization and Analysis in Recsys Challenge p1
This file contains hidden or 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
plt.rcParams['figure.figsize'] = (15, 10) # set default fig size | |
click_file = './data/yoochoose-data/yoochoose-clicks.dat' | |
buy_file = './data/yoochoose-data/yoochoose-buys.dat' | |
click = pd.read_csv(click_file, | |
header=None, index_col=False, parse_dates=[1], | |
names=['SesID', 'TimeStamp','ItemID','Category'], | |
dtype={'SesID':str, | |
'TimeStamp':datetime, | |
'ItemID':str, | |
'Category': str}) | |
buy = pd.read_csv(buy_file, | |
header=None,index_col=False, parse_dates=[1], | |
names=['SesID', 'TimeStamp', 'ItemID', 'Price', 'Quantity'], | |
dtype={'SesID':str, | |
'TimeStamp':datetime, | |
'ItemID':str, | |
'Price':float, | |
'Quantity':int}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment