Skip to content

Instantly share code, notes, and snippets.

@adilek
Created June 6, 2018 14:42
Show Gist options
  • Save adilek/7872963b123d69b5b77808db507a51bb to your computer and use it in GitHub Desktop.
Save adilek/7872963b123d69b5b77808db507a51bb to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"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",
" <th></th>\n",
" <th>birth_year</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1985</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1994</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>1988</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>1964</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>1980</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>1995</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>1996</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>1990</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>1993</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>1983</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>1982</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>1984</td>\n",
" </tr>\n",
" <tr>\n",
" <th>18</th>\n",
" <td>1989</td>\n",
" </tr>\n",
" <tr>\n",
" <th>19</th>\n",
" <td>1997</td>\n",
" </tr>\n",
" <tr>\n",
" <th>21</th>\n",
" <td>1998</td>\n",
" </tr>\n",
" <tr>\n",
" <th>25</th>\n",
" <td>1987</td>\n",
" </tr>\n",
" <tr>\n",
" <th>26</th>\n",
" <td>1981</td>\n",
" </tr>\n",
" <tr>\n",
" <th>29</th>\n",
" <td>1992</td>\n",
" </tr>\n",
" <tr>\n",
" <th>35</th>\n",
" <td>1991</td>\n",
" </tr>\n",
" <tr>\n",
" <th>36</th>\n",
" <td>2000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" birth_year\n",
"0 1985\n",
"1 1994\n",
"2 1988\n",
"3 1964\n",
"4 1980\n",
"5 1995\n",
"6 1996\n",
"7 1990\n",
"8 1993\n",
"9 1983\n",
"10 1982\n",
"11 1984\n",
"18 1989\n",
"19 1997\n",
"21 1998\n",
"25 1987\n",
"26 1981\n",
"29 1992\n",
"35 1991\n",
"36 2000"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"users[[\"birth_year\"]].drop_duplicates()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment