Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert solutions.ipynb to blank cells in 02 Fictional Army #131

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
Binary file added 01_Getting_&_Knowing_Your_Data/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,21 @@
"metadata": {},
"source": [
"This time we are going to pull data directly from the internet.\n",
"Special thanks to: https://github.com/justmarkham for sharing the dataset and materials.\n",
"\n",
"### Step 1. Import the necessary libraries"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np"
"Special thanks to: https://github.com/justmarkham for sharing the dataset and materials."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 2. Import the dataset from this [address](https://raw.githubusercontent.com/justmarkham/DAT8/master/data/chipotle.tsv). "
"### Import the dataset from this [address](https://raw.githubusercontent.com/justmarkham/DAT8/master/data/chipotle.tsv). "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 3. Assign it to a variable called chipo."
"### Assign it to a variable called chipo."
]
},
{
Expand All @@ -62,7 +48,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 4. See the first 10 entries"
"### See the first 10 entries"
]
},
{
Expand Down Expand Up @@ -212,7 +198,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 5. What is the number of observations in the dataset?"
"### What is the number of observations in the dataset?"
]
},
{
Expand Down Expand Up @@ -273,7 +259,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 6. What is the number of columns in the dataset?"
"### What is the number of columns in the dataset?"
]
},
{
Expand Down Expand Up @@ -302,7 +288,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 7. Print the name of all the columns."
"### Print the name of all the columns."
]
},
{
Expand Down Expand Up @@ -333,7 +319,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 8. How is the dataset indexed?"
"### How is the dataset indexed?"
]
},
{
Expand Down Expand Up @@ -362,7 +348,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 9. Which was the most-ordered item? "
"### Which was the most-ordered item? "
]
},
{
Expand Down Expand Up @@ -421,7 +407,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 10. For the most-ordered item, how many items were ordered?"
"### For the most-ordered item, how many items were ordered?"
]
},
{
Expand Down Expand Up @@ -480,7 +466,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 11. What was the most ordered item in the choice_description column?"
"### What was the most ordered item in the choice_description column?"
]
},
{
Expand Down Expand Up @@ -539,7 +525,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 12. How many items were orderd in total?"
"### How many items were orderd in total?"
]
},
{
Expand Down Expand Up @@ -569,14 +555,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 13. Turn the item price into a float"
"### Turn the item price into a float"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Step 13.a. Check the item price type"
"####a. Check the item price type"
]
},
{
Expand Down Expand Up @@ -605,7 +591,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Step 13.b. Create a lambda function and change the type of item price"
"####b. Create a lambda function and change the type of item price"
]
},
{
Expand All @@ -624,7 +610,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Step 13.c. Check the item price type"
"####c. Check the item price type"
]
},
{
Expand Down Expand Up @@ -653,7 +639,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 14. How much was the revenue for the period in the dataset?"
"### How much was the revenue for the period in the dataset?"
]
},
{
Expand Down Expand Up @@ -681,7 +667,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 15. How many orders were made in the period?"
"### How many orders were made in the period?"
]
},
{
Expand Down Expand Up @@ -711,7 +697,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 16. What is the average revenue amount per order?"
"### What is the average revenue amount per order?"
]
},
{
Expand Down Expand Up @@ -768,7 +754,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 17. How many different items are sold?"
"### How many different items are sold?"
]
},
{
Expand All @@ -795,23 +781,22 @@
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [default]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python2"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
"pygments_lexer": "ipython3",
"version": "3.9.7"
}
},
"nbformat": 4,
Expand Down
Loading