|
7 | 7 | "source": [ |
8 | 8 | "# Reading Python\n", |
9 | 9 | "- This notebooks goal is not to produce python code, but an introduction on to to make sense of (read) code.\n", |
10 | | - " - we will go through and learn some Python terminology and structure.\n", |
11 | | - " - You can install Python on your computer and write code form scratch, but this is time intensive and not necessary when getting started\n", |
12 | | - " - Jupyter Notebooks and Colab are computational notebooks workbook where you can run code in your browser. There are many computational notebooks used in workshops and online books. \n", |
13 | | - " - For more on Computational notebooks see this page, [JupyterLab & Notebooks](https://southernmethodistuniversity.github.io/intro-to-python/jupyterlab.html)\n", |
| 10 | + " - We will go through and learn some Python terminology and structure.\n", |
| 11 | + " - You can install Python on your computer and write code from scratch, and we do have resources on getting started with coding. \n", |
| 12 | + "- However, if you are reading or using a digital scholarships or digital humanities project, you may just want to have a general understanding of what the researchers or developers are using code for. \n", |
| 13 | + "- The goals of this notebook is to help you develop the ability to: \n", |
| 14 | + " - Be able to identify some discrete pieces of code\n", |
| 15 | + " - Identify (at a high level) the processes we are going through\n", |
| 16 | + "\n", |
| 17 | + " - Jupyter Notebooks and Colab are computational notebooks that allow you to run code in your browser. There are many computational notebooks used in workshops and online books. \n", |
| 18 | + " - For more on computational notebooks see this page, [JupyterLab & Notebooks](https://southernmethodistuniversity.github.io/intro-to-python/jupyterlab.html)\n", |
14 | 19 | " \n", |
15 | 20 | "\n", |
16 | 21 | "\n" |
|
105 | 110 | "cell_type": "markdown", |
106 | 111 | "metadata": {}, |
107 | 112 | "source": [ |
108 | | - "- References\n", |
| 113 | + "# Libraries in python\n", |
| 114 | + "- A library or package is a collection of pre-written code kits\n", |
| 115 | + " - They allow you do a bunch of different things\n", |
| 116 | + "- Sometimes you have to add a bunch of them in a row\n", |
| 117 | + " - There is probably an order to care about\n", |
| 118 | + " - What do you need to know?\n" |
| 119 | + ] |
| 120 | + }, |
| 121 | + { |
| 122 | + "attachments": {}, |
| 123 | + "cell_type": "markdown", |
| 124 | + "metadata": {}, |
| 125 | + "source": [ |
| 126 | + "## Libraries in python: Examples\n", |
109 | 127 | "\n", |
110 | | - "[Introduction to Cultural Analytics & Python, Designed by Melanie Walsh](https://melaniewalsh.github.io/Intro-Cultural-Analytics/welcome.html)\n", |
| 128 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/importpa1.png\" alt=\"Python Libraries 1\"/>\n", |
| 129 | + "\n", |
| 130 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/importpa2.png\" alt=\"Python Libraries 2\"/>\n", |
| 131 | + "\n", |
| 132 | + " - pandas is library specifically for working with data, cleaning it up, etc" |
| 133 | + ] |
| 134 | + }, |
| 135 | + { |
| 136 | + "attachments": {}, |
| 137 | + "cell_type": "markdown", |
| 138 | + "metadata": {}, |
| 139 | + "source": [ |
| 140 | + "# Some examples from *Introduction to Cultural Analytics & Python*\n", |
| 141 | + " - [Introduction to Cultural Analytics & Python, Designed by Melanie Walsh](https://melaniewalsh.github.io/Intro-Cultural-Analytics/welcome.html)\n", |
111 | 142 | "\n" |
112 | 143 | ] |
113 | 144 | }, |
| 145 | + { |
| 146 | + "cell_type": "markdown", |
| 147 | + "metadata": {}, |
| 148 | + "source": [ |
| 149 | + "## [Iterate Through Dictionary](https://melaniewalsh.github.io/Intro-Cultural-Analytics/02-Python/11-Dictionaries.html#iterate-through-dictionary)\n", |
| 150 | + "\n", |
| 151 | + "\n", |
| 152 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/iteratedict1.png\" alt=\"Iterate Through Dictionary 1\"/>\n", |
| 153 | + "\n", |
| 154 | + "\n", |
| 155 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/iteratedict2.png\" alt=\"Iterate Through Dictionary 2\"/>\n", |
| 156 | + "\n", |
| 157 | + " - IF introduces a certain level of logic\n", |
| 158 | + " - F’ (f-bar) is a formatting feature for strings (sets of letters-numbers)\n", |
| 159 | + "- { } pulls in the dictionaries established \n" |
| 160 | + ] |
| 161 | + }, |
| 162 | + { |
| 163 | + "cell_type": "markdown", |
| 164 | + "metadata": {}, |
| 165 | + "source": [ |
| 166 | + "## [Sentiment Analysis Example](https://melaniewalsh.github.io/Intro-Cultural-Analytics/05-Text-Analysis/04-Sentiment-Analysis.html#sentiment-analysis)\n", |
| 167 | + "\n", |
| 168 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/vader1.png\" alt=\"Vader example 1\"/>\n", |
| 169 | + "\n", |
| 170 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/vader2.png\" alt=\"Vader example 2\"/>\n" |
| 171 | + ] |
| 172 | + }, |
| 173 | + { |
| 174 | + "cell_type": "markdown", |
| 175 | + "metadata": {}, |
| 176 | + "source": [ |
| 177 | + "## [Named Entity Recognition Example](https://melaniewalsh.github.io/Intro-Cultural-Analytics/05-Text-Analysis/12-Named-Entity-Recognition.html)\n", |
| 178 | + "\n", |
| 179 | + "\n", |
| 180 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/ner1.png\" alt=\"NER example 1\"/>\n", |
| 181 | + "\n", |
| 182 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/ner2.png\" alt=\"NER example 2\"/>\n", |
| 183 | + "\n" |
| 184 | + ] |
| 185 | + }, |
| 186 | + { |
| 187 | + "cell_type": "markdown", |
| 188 | + "metadata": {}, |
| 189 | + "source": [ |
| 190 | + "## [Part-of-Speech Tagging Example](https://melaniewalsh.github.io/Intro-Cultural-Analytics/05-Text-Analysis/13-POS-Keywords.html)\n", |
| 191 | + "\n", |
| 192 | + " <img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/pos.png\" alt=\"POS example 1\"/>\n", |
| 193 | + "\n", |
| 194 | + " " |
| 195 | + ] |
| 196 | + }, |
| 197 | + { |
| 198 | + "cell_type": "markdown", |
| 199 | + "metadata": {}, |
| 200 | + "source": [ |
| 201 | + "References: [Introduction to Cultural Analytics & Python, Designed by Melanie Walsh](https://melaniewalsh.github.io/Intro-Cultural-Analytics/welcome.html)\n", |
| 202 | + "- This online textbook offers an introduction to the programming language Python that is specifically designed for people interested in the humanities and social sciences.\n" |
| 203 | + ] |
| 204 | + }, |
114 | 205 | { |
115 | 206 | "cell_type": "markdown", |
116 | 207 | "metadata": {}, |
117 | 208 | "source": [ |
118 | 209 | "______\n", |
119 | 210 | "Attribution\n", |
120 | | - "\n", |
| 211 | + "\n", |
| 212 | + "- \n", |
121 | 213 | "\n", |
122 | 214 | "[READING PYTHON: a program of commands for talking to your computer](https://www.dropbox.com/scl/fi/2xg6cph6ag38iy5vzn0kg/intro-to-python-beginners.pptx?rlkey=xghsqe6xr2ahqds9nwicnsgxm&e=2&st=zjdg2qwf&dl=0)\n", |
123 | 215 | "Created by [Dr Heather Froehlich](https://hfroehli.ch/) used under [Creative Commons CC BY License](https://creativecommons.org/licenses/by/4.0/)\n", |
|
0 commit comments