Skip to content

Commit

Permalink
atualizacoes dos slides conforme semestre 2018.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rvimieiro committed May 28, 2018
1 parent fb10ae2 commit b5a9b06
Show file tree
Hide file tree
Showing 17 changed files with 6,044 additions and 7,088 deletions.
93 changes: 61 additions & 32 deletions aula02-intro-pandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "skip"
}
Expand Down Expand Up @@ -94,7 +93,6 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -125,7 +123,6 @@
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -159,7 +156,6 @@
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -188,7 +184,6 @@
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -220,7 +215,6 @@
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -258,7 +252,6 @@
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -292,9 +285,8 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 2,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -325,7 +317,6 @@
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand All @@ -335,9 +326,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"<map object at 0x1069286d8> [0, 1, 4, 9, 16, 25]\n",
"<zip object at 0x10692a648> [(0, 0), (1, 1), (2, 4), (3, 9), (4, 16), (5, 25)]\n",
"<filter object at 0x106928710> [0, 2, 4, 6, 8]\n"
"<map object at 0x10e9c8278> [0, 1, 4, 9, 16, 25]\n",
"<zip object at 0x10c8318c8> [(0, 0), (1, 1), (2, 4), (3, 9), (4, 16), (5, 25)]\n",
"<filter object at 0x10e9c82e8> [0, 2, 4, 6, 8]\n"
]
}
],
Expand Down Expand Up @@ -376,7 +367,6 @@
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -418,7 +408,6 @@
"cell_type": "code",
"execution_count": 11,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -462,7 +451,6 @@
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -499,7 +487,6 @@
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -594,9 +581,8 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": 14,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand All @@ -613,6 +599,19 @@
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
Expand Down Expand Up @@ -678,7 +677,7 @@
"4 5 33 F other 15213"
]
},
"execution_count": 24,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -709,9 +708,8 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 21,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand All @@ -728,6 +726,19 @@
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
Expand Down Expand Up @@ -913,7 +924,7 @@
"[5 rows x 24 columns]"
]
},
"execution_count": 26,
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -922,7 +933,8 @@
"filmes = pd.read_csv(\n",
" \"http://files.grouplens.org/datasets/movielens/ml-100k/u.item\",\n",
" sep='|',header=None, names=[\"movie_id\", \"movie_title\", \"release_date\", \"video_release_date\", \"IMDb_URL\", \"unknown\", \"Action\", \"Adventure\", \"Animation\", \n",
" \"Children\", \"Comedy\", \"Crime\", \"Documentary\", \"Drama\", \"Fantasy\",\"FilmNoir\", \"Horror\", \"Musical\", \"Mystery\", \"Romance\", \"SciFi\",\"Thriller\", \"War\", \"Western\"])\n",
" \"Children\", \"Comedy\", \"Crime\", \"Documentary\", \"Drama\", \"Fantasy\",\"FilmNoir\", \"Horror\", \"Musical\", \"Mystery\", \"Romance\", \"SciFi\",\"Thriller\", \"War\", \"Western\"],\n",
" encoding='latin1')\n",
"print(filmes.shape)\n",
"filmes.head()"
]
Expand All @@ -945,9 +957,8 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 17,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand All @@ -964,6 +975,19 @@
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
Expand Down Expand Up @@ -1023,7 +1047,7 @@
"4 166 346 1 886397596"
]
},
"execution_count": 16,
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -1053,9 +1077,8 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 18,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -1091,9 +1114,8 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 19,
"metadata": {
"collapsed": false,
"slideshow": {
"slide_type": "subslide"
}
Expand Down Expand Up @@ -1134,6 +1156,13 @@
"source": [
"print(filmes.dtypes)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -1153,7 +1182,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"version": "3.6.3"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit b5a9b06

Please sign in to comment.