Skip to content

Instantly share code, notes, and snippets.

@findmyway
Created January 29, 2015 16:14
Show Gist options
  • Save findmyway/b46a0d94e56b64f3be7e to your computer and use it in GitHub Desktop.
Save findmyway/b46a0d94e56b64f3be7e to your computer and use it in GitHub Desktop.
Data Visualization and Analysis in Recsys Challenge p1
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