Guest User

Untitled

a guest
Jun 9th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "code",
  5. "execution_count": 13,
  6. "metadata": {},
  7. "outputs": [
  8. {
  9. "data": {
  10. "text/html": [
  11. "<div>\n",
  12. "<style scoped>\n",
  13. " .dataframe tbody tr th:only-of-type {\n",
  14. " vertical-align: middle;\n",
  15. " }\n",
  16. "\n",
  17. " .dataframe tbody tr th {\n",
  18. " vertical-align: top;\n",
  19. " }\n",
  20. "\n",
  21. " .dataframe thead th {\n",
  22. " text-align: right;\n",
  23. " }\n",
  24. "</style>\n",
  25. "<table border=\"1\" class=\"dataframe\">\n",
  26. " <thead>\n",
  27. " <tr style=\"text-align: right;\">\n",
  28. " <th></th>\n",
  29. " <th>id</th>\n",
  30. " <th>username</th>\n",
  31. " <th>first_name</th>\n",
  32. " <th>last_name</th>\n",
  33. " <th>birth_year</th>\n",
  34. " <th>points</th>\n",
  35. " <th>email</th>\n",
  36. " </tr>\n",
  37. " </thead>\n",
  38. " <tbody>\n",
  39. " <tr>\n",
  40. " <th>21</th>\n",
  41. " <td>22</td>\n",
  42. " <td>logan.evan</td>\n",
  43. " <td>Logan</td>\n",
  44. " <td>Evan</td>\n",
  45. " <td>1998</td>\n",
  46. " <td>12</td>\n",
  47. " <td>logan.evan@example.com</td>\n",
  48. " </tr>\n",
  49. " <tr>\n",
  50. " <th>30</th>\n",
  51. " <td>31</td>\n",
  52. " <td>jayden.ian</td>\n",
  53. " <td>Jayden</td>\n",
  54. " <td>Ian</td>\n",
  55. " <td>1998</td>\n",
  56. " <td>10</td>\n",
  57. " <td>jayden.ian@example.com</td>\n",
  58. " </tr>\n",
  59. " <tr>\n",
  60. " <th>36</th>\n",
  61. " <td>37</td>\n",
  62. " <td>wyatt.jason</td>\n",
  63. " <td>Wyatt</td>\n",
  64. " <td>Jason</td>\n",
  65. " <td>2000</td>\n",
  66. " <td>3</td>\n",
  67. " <td>wyatt.jason@example.com</td>\n",
  68. " </tr>\n",
  69. " </tbody>\n",
  70. "</table>\n",
  71. "</div>"
  72. ],
  73. "text/plain": [
  74. " id username first_name last_name birth_year points \\\n",
  75. "21 22 logan.evan Logan Evan 1998 12 \n",
  76. "30 31 jayden.ian Jayden Ian 1998 10 \n",
  77. "36 37 wyatt.jason Wyatt Jason 2000 3 \n",
  78. "\n",
  79. " email \n",
  80. "21 logan.evan@example.com \n",
  81. "30 jayden.ian@example.com \n",
  82. "36 wyatt.jason@example.com "
  83. ]
  84. },
  85. "execution_count": 13,
  86. "metadata": {},
  87. "output_type": "execute_result"
  88. }
  89. ],
  90. "source": [
  91. "users[(users[\"birth_year\"]>=1998) & (users[\"birth_year\"]<=2018)]"
  92. ]
  93. }
  94. ],
  95. "metadata": {
  96. "kernelspec": {
  97. "display_name": "Python 3",
  98. "language": "python",
  99. "name": "python3"
  100. },
  101. "language_info": {
  102. "codemirror_mode": {
  103. "name": "ipython",
  104. "version": 3
  105. },
  106. "file_extension": ".py",
  107. "mimetype": "text/x-python",
  108. "name": "python",
  109. "nbconvert_exporter": "python",
  110. "pygments_lexer": "ipython3",
  111. "version": "3.6.5"
  112. }
  113. },
  114. "nbformat": 4,
  115. "nbformat_minor": 2
  116. }
Add Comment
Please, Sign In to add comment