Advertisement
Guest User

Untitled

a guest
Sep 11th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "code",
  5. "execution_count": 1,
  6. "metadata": {},
  7. "outputs": [],
  8. "source": [
  9. "import pandas as pd"
  10. ]
  11. },
  12. {
  13. "cell_type": "code",
  14. "execution_count": 2,
  15. "metadata": {},
  16. "outputs": [],
  17. "source": [
  18. "df = pd.read_csv('Student_Grades.csv')"
  19. ]
  20. },
  21. {
  22. "cell_type": "code",
  23. "execution_count": 3,
  24. "metadata": {},
  25. "outputs": [
  26. {
  27. "data": {
  28. "text/html": [
  29. "<div>\n",
  30. "<style scoped>\n",
  31. " .dataframe tbody tr th:only-of-type {\n",
  32. " vertical-align: middle;\n",
  33. " }\n",
  34. "\n",
  35. " .dataframe tbody tr th {\n",
  36. " vertical-align: top;\n",
  37. " }\n",
  38. "\n",
  39. " .dataframe thead th {\n",
  40. " text-align: right;\n",
  41. " }\n",
  42. "</style>\n",
  43. "<table border=\"1\" class=\"dataframe\">\n",
  44. " <thead>\n",
  45. " <tr style=\"text-align: right;\">\n",
  46. " <th></th>\n",
  47. " <th>Student</th>\n",
  48. " <th>Grade</th>\n",
  49. " </tr>\n",
  50. " </thead>\n",
  51. " <tbody>\n",
  52. " <tr>\n",
  53. " <th>0</th>\n",
  54. " <td>John Smith</td>\n",
  55. " <td>80</td>\n",
  56. " </tr>\n",
  57. " <tr>\n",
  58. " <th>1</th>\n",
  59. " <td>Jane Smith</td>\n",
  60. " <td>75</td>\n",
  61. " </tr>\n",
  62. " <tr>\n",
  63. " <th>2</th>\n",
  64. " <td>John Doe</td>\n",
  65. " <td>65</td>\n",
  66. " </tr>\n",
  67. " <tr>\n",
  68. " <th>3</th>\n",
  69. " <td>Jane Doe</td>\n",
  70. " <td>90</td>\n",
  71. " </tr>\n",
  72. " </tbody>\n",
  73. "</table>\n",
  74. "</div>"
  75. ],
  76. "text/plain": [
  77. " Student Grade\n",
  78. "0 John Smith 80\n",
  79. "1 Jane Smith 75\n",
  80. "2 John Doe 65\n",
  81. "3 Jane Doe 90"
  82. ]
  83. },
  84. "execution_count": 3,
  85. "metadata": {},
  86. "output_type": "execute_result"
  87. }
  88. ],
  89. "source": [
  90. "df.head()"
  91. ]
  92. },
  93. {
  94. "cell_type": "code",
  95. "execution_count": null,
  96. "metadata": {},
  97. "outputs": [],
  98. "source": []
  99. }
  100. ],
  101. "metadata": {
  102. "kernelspec": {
  103. "display_name": "Python",
  104. "language": "python",
  105. "name": "conda-env-python-py"
  106. },
  107. "language_info": {
  108. "codemirror_mode": {
  109. "name": "ipython",
  110. "version": 3
  111. },
  112. "file_extension": ".py",
  113. "mimetype": "text/x-python",
  114. "name": "python",
  115. "nbconvert_exporter": "python",
  116. "pygments_lexer": "ipython3",
  117. "version": "3.6.7"
  118. }
  119. },
  120. "nbformat": 4,
  121. "nbformat_minor": 4
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement