{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"___\n",
"\n",
" \n",
"___\n",
"# Ecommerce Purchases Exercise\n",
"\n",
"In this Exercise you will be given some Fake Data about some purchases done through Amazon! Just go ahead and follow the directions and try your best to answer the questions and complete the tasks. Feel free to reference the solutions. Most of the tasks can be solved in different ways. For the most part, the questions get progressively harder.\n",
"\n",
"Please excuse anything that doesn't make \"Real-World\" sense in the dataframe, all the data is fake and made-up.\n",
"\n",
"Also note that all of these questions can be answered with one line of code.\n",
"____\n",
"** Import pandas and read in the Ecommerce Purchases csv file and set it to a DataFrame called ecom. **"
]
},
{
"cell_type": "code",
"execution_count": 84,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": 86,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Check the head of the DataFrame.**"
]
},
{
"cell_type": "code",
"execution_count": 87,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
"
\n", " | Address | \n", "Lot | \n", "AM or PM | \n", "Browser Info | \n", "Company | \n", "Credit Card | \n", "CC Exp Date | \n", "CC Security Code | \n", "CC Provider | \n", "Job | \n", "IP Address | \n", "Language | \n", "Purchase Price | \n", "|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "16629 Pace Camp Apt. 448\\nAlexisborough, NE 77... | \n", "46 in | \n", "PM | \n", "Opera/9.56.(X11; Linux x86_64; sl-SI) Presto/2... | \n", "Martinez-Herman | \n", "6011929061123406 | \n", "02/20 | \n", "900 | \n", "JCB 16 digit | \n", "pdunlap@yahoo.com | \n", "Scientist, product/process development | \n", "149.146.147.205 | \n", "el | \n", "98.14 | \n", "
1 | \n", "9374 Jasmine Spurs Suite 508\\nSouth John, TN 8... | \n", "28 rn | \n", "PM | \n", "Opera/8.93.(Windows 98; Win 9x 4.90; en-US) Pr... | \n", "Fletcher, Richards and Whitaker | \n", "3337758169645356 | \n", "11/18 | \n", "561 | \n", "Mastercard | \n", "anthony41@reed.com | \n", "Drilling engineer | \n", "15.160.41.51 | \n", "fr | \n", "70.73 | \n", "
2 | \n", "Unit 0065 Box 5052\\nDPO AP 27450 | \n", "94 vE | \n", "PM | \n", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT ... | \n", "Simpson, Williams and Pham | \n", "675957666125 | \n", "08/19 | \n", "699 | \n", "JCB 16 digit | \n", "amymiller@morales-harrison.com | \n", "Customer service manager | \n", "132.207.160.22 | \n", "de | \n", "0.95 | \n", "
3 | \n", "7780 Julia Fords\\nNew Stacy, WA 45798 | \n", "36 vm | \n", "PM | \n", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0 ... | \n", "Williams, Marshall and Buchanan | \n", "6011578504430710 | \n", "02/24 | \n", "384 | \n", "Discover | \n", "brent16@olson-robinson.info | \n", "Drilling engineer | \n", "30.250.74.19 | \n", "es | \n", "78.04 | \n", "
4 | \n", "23012 Munoz Drive Suite 337\\nNew Cynthia, TX 5... | \n", "20 IE | \n", "AM | \n", "Opera/9.58.(X11; Linux x86_64; it-IT) Presto/2... | \n", "Brown, Watson and Andrews | \n", "6011456623207998 | \n", "10/25 | \n", "678 | \n", "Diners Club / Carte Blanche | \n", "christopherwright@gmail.com | \n", "Fine artist | \n", "24.140.33.94 | \n", "es | \n", "77.82 | \n", "