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

Creating Series & DataFrames/Pokemon #100

Merged
merged 2 commits into from
Apr 25, 2020
Merged
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
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 3. Assign it to a variable called "
"### Step 3. Assign it to a variable called pokemon"
]
},
{
2 changes: 1 addition & 1 deletion 08_Creating_Series_and_DataFrames/Pokemon/Exercises.ipynb
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 3. Assign it to a variable called "
"### Step 3. Assign it to a variable called pokemon"
]
},
{
238 changes: 227 additions & 11 deletions 08_Creating_Series_and_DataFrames/Pokemon/Solutions.ipynb
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {
"collapsed": false
},
@@ -38,7 +38,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {
"collapsed": true
},
@@ -49,16 +49,81 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Step 3. Assign it to a variable called "
"### Step 3. Assign it to a variable called pokemon"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>evolution</th>\n",
" <th>hp</th>\n",
" <th>name</th>\n",
" <th>pokedex</th>\n",
" <th>type</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Ivysaur</td>\n",
" <td>45</td>\n",
" <td>Bulbasaur</td>\n",
" <td>yes</td>\n",
" <td>grass</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Charmeleon</td>\n",
" <td>39</td>\n",
" <td>Charmander</td>\n",
" <td>no</td>\n",
" <td>fire</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Wartortle</td>\n",
" <td>44</td>\n",
" <td>Squirtle</td>\n",
" <td>yes</td>\n",
" <td>water</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Metapod</td>\n",
" <td>45</td>\n",
" <td>Caterpie</td>\n",
" <td>no</td>\n",
" <td>bug</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" evolution hp name pokedex type\n",
"0 Ivysaur 45 Bulbasaur yes grass\n",
"1 Charmeleon 39 Charmander no fire\n",
"2 Wartortle 44 Squirtle yes water\n",
"3 Metapod 45 Caterpie no bug"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
@@ -70,11 +135,76 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>name</th>\n",
" <th>type</th>\n",
" <th>hp</th>\n",
" <th>evolution</th>\n",
" <th>pokedex</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Bulbasaur</td>\n",
" <td>grass</td>\n",
" <td>45</td>\n",
" <td>Ivysaur</td>\n",
" <td>yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Charmander</td>\n",
" <td>fire</td>\n",
" <td>39</td>\n",
" <td>Charmeleon</td>\n",
" <td>no</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Squirtle</td>\n",
" <td>water</td>\n",
" <td>44</td>\n",
" <td>Wartortle</td>\n",
" <td>yes</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Caterpie</td>\n",
" <td>bug</td>\n",
" <td>45</td>\n",
" <td>Metapod</td>\n",
" <td>no</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" name type hp evolution pokedex\n",
"0 Bulbasaur grass 45 Ivysaur yes\n",
"1 Charmander fire 39 Charmeleon no\n",
"2 Squirtle water 44 Wartortle yes\n",
"3 Caterpie bug 45 Metapod no"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
@@ -86,11 +216,81 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"metadata": {
"collapsed": false
},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>name</th>\n",
" <th>type</th>\n",
" <th>hp</th>\n",
" <th>evolution</th>\n",
" <th>pokedex</th>\n",
" <th>place</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Bulbasaur</td>\n",
" <td>grass</td>\n",
" <td>45</td>\n",
" <td>Ivysaur</td>\n",
" <td>yes</td>\n",
" <td>park</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Charmander</td>\n",
" <td>fire</td>\n",
" <td>39</td>\n",
" <td>Charmeleon</td>\n",
" <td>no</td>\n",
" <td>street</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Squirtle</td>\n",
" <td>water</td>\n",
" <td>44</td>\n",
" <td>Wartortle</td>\n",
" <td>yes</td>\n",
" <td>lake</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Caterpie</td>\n",
" <td>bug</td>\n",
" <td>45</td>\n",
" <td>Metapod</td>\n",
" <td>no</td>\n",
" <td>forest</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" name type hp evolution pokedex place\n",
"0 Bulbasaur grass 45 Ivysaur yes park\n",
"1 Charmander fire 39 Charmeleon no street\n",
"2 Squirtle water 44 Wartortle yes lake\n",
"3 Caterpie bug 45 Metapod no forest"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
@@ -102,11 +302,27 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"name object\n",
"type object\n",
"hp int64\n",
"evolution object\n",
"pokedex object\n",
"dtype: object"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{