owned this note
owned this note
Published
Linked with GitHub
---
tags: ResBaz2020
---
# Intro to Python 1: Data
## Resbaz Arizona Conference: Monday, May 18th, 2020 10\:00-12\:00
[Back to Resbaz List of HackMDs](https://hackmd.io/7oOSL_LcTsGyJwjOmg4raw)
This workshop will help researchers with no prior programming experience learn how to utilize Python to analyze research data. Attendees will learn how to open data files in Python, complete basic data manipulation tasks and save their work without compromising original data. Oftentimes, researchers find themselves needing to do the same task with different data and attendees will gain basic experience on how Python can help you make more efficient use of your time.
[Preparation for workshop](https://drakeasberry.github.io/intro_python_resbaz2020/)
## Getting Started
1. Find the following [workshop GitHub repository](https://github.com/drakeasberry/2020_Resbaz_Python.git)
2. In the upper right-hand corner you will see a button called `Fork`. Click on this button to create your own copy of the repo in your personal GitHub account.
3. Click on the green button `Clone or Download`.
4. Copy the link to your repo.
5. Go to [Binder](https://mybinder.org/).
6. Paste the link to your repo in the first box and ensure GitHub is selected to the left of the link you pasted.
7. Leave all other fields blank and click on the orange button `Launch`.
8. This will eventually open a new tab in your browser but it may take a few minutes the first time it loads.
9. While you wait for it to load, please introduce yourself below.
---
## Introductions
Name, Affiliation, Title, Email, Social Media
- Drake Asberry, University of Arizona, SLAT PhD Candidate/Workshop Instructor, dasberry@email.arizona.edu, @AsberryDrake (twitter)
- Emily Cain, University of Arizona, Scientific Programmer - CALS, ejcain@arizona.edu, @Magic_Milly (twitter) [HELPER]
- Mario Villa, University of Arizona, MLIS student, mariovilla@email.arizona.edu, mikitzli (IG)
- Sateesh Peri, UArizona, sateeshp@email.arizona.edu, @perisateesh
- Alex Bigelow, UA Data Science Fellow / CS Postdoc, Slytherin 🐍, alexrbigelow@arizona.edu
- Ruchika Bhat, Post Doc, UA, ruchikabhat@email.arizona.edu
- Ji-young Shin, PhD Candidate in Second Language Studies/ESL, Purdue University, jyshin@purdue.edu
- Bill Cotter, PhD Candidate in Anthropology & Linguistics, University of Arizona, williamcotter@email.arizona.edu
- Larissa Goulart, NAU, PhD candidate in Applied Linguistics, lg845@nau.edu, @LGoulart845
- Zack Jarrett, business finance, Mac desktop automation software developer, zack@zackswagon.com, @AzironaZack
- Ray Sin, Behavioral Scientist, Zelle, sin.ray@gmail.com
- Jun Zhang, Hydrologist, Unviersity of Arizona, junzhang55@arizona.edu
- Darla Still, UArizona, PhD candidate in Sociology, dmstill@email.arizona.edu, @seriousdarla (Twitter) [Instructor for Scraping Twitter on Python 5/26]
- Blake Joyce, Assistant Director of Research Computing, bjoyce3@email.arizona.edu
- Alantis Houpt, University of Arizona, Undergraduate Student and Research Assistant with CROW, alantishoupt@email.arizona.edu
- Angela Matute Sanchez, Univeristy of Arizona, PhD Candidate in Hispanic Linguistics, matutesanchez@email.arizona.edu
- Chun Ly (Python helper), UA, data science librarian by day, astronomer by night (literally), @astrochun ([GitHub](https://github.com/astrochun)) @astrochunly ([twitter](https://twitter.com/astrochunly)), chunly@arizona.edu
- Rebecca Vanderpool, University of Arizona, Assistant Professor, vanderpoolrr@email.arizona.edu, @rrvdpool (Twitter)
- Skye Anderson, University of Arizona, PhD Candidate, Department of Linguistics, skanderson@email.arizona.edu
- Christina Kalel, University of Arizona, Instructional Applications Support Specialist, kalel@arizona.edu
- Lee Swift, University of Arizona mathematics grad student
- Preshit Ambade, UArizona, preshitambade@email.arizona.edu
- Seda Acikara, Northern Arizona University, MA TESL graduate, seda.acikara@gmail.com
- Thu Tra, Universiy of Arizona, computer science undergraduate student, thutra@email.arizona.edu
- Greg Chism, University of Arizona, PhD candidate Ento & insect sci GIDP
- Tammy Dang, Arizona State University, Library Data Specialist
- Dan Lewis, University of Arizona, PhD student in Mathematics, dlewis3 at math dot arizona dot edu
- Elliot Truslow, PhD Student UArizona School of Sociology
- Maiara Viegas, Applied Linguistics graduate (Federal University of Rio Grande do Sul - Brazil) - maiararv@gmail.com
- Cody Wooden, University of Arizona, Grad. Assistant- UA Libraries (Geospatial & GIS), cwooden@email.arizona.edu
- Victoria Luizzi, Ecology & Evolutionary Biology PhD Student, vjluizzi@email.arizona.edu, @speckofjelly (twitter)
- Kunal Palawat, MS Environmental Science, kpalawat@email.arizona.edu, @soilmonolouges insta
- Quinton Aboud, University of Arizona, PhD student in Mathematics, aboud@math.arizona.edu
- Carolina Zuppardi, Pontificia Universidade Catolica de Sao Paulo, PhD Candidate in Applied Linguistics, carolzupp@gmail.com
- Maria A. Sans-Fuentes, PhD Candidate GIDP Statistics. University of Arizona. sans@email.arizona.edu
- Hannah Andrews, University of Arizona, PhD Candidate School of Sociology, hannahre@email.arizona.edu
- Julian Pistorius, Research Engineer, DIAG/College of Agriculture and Life Sciences, University of Arizona, julianp at arizona dot ee-dee-u, Gryffindor 🦁, [HELPER]
## Questions and Answers
In this section, you can post your questions and feel free to answer if you have it. Questions will be answered during or after the workshop.
1. Ask your question.
- Here is an answer
2. Q. William Michael Cotter: Can anyone remind me what the keyboard shortcut is to run a cell so you dont have to click the run button?
A. Jason Quinones: shift+enter
B. Chun Ly: Note that in your Jupyter notebook, there’s a Help menu that shows all the keyboard shortcuts.
3. Q. Preskella Mrad: Can we add a number in the middle?
A. Tammy Dang: Yes. ... you can add to the middle of list using .insert I believe….something like: list_of_numbers.insert ([location in list], [value int insert])
4. Q. Ray Sin: Is this functionally equivalent? list_of_numbers + [20] vs list_of_numbers.append(20)
A. Chun Ly: This temporary creates a new unsaved list that contains list_of_numbers and [20]. However, it does not update list_of_numbers as the append option does. To append, you will want to do list_of_numbers = list_of_numbers + [20]
5. Q. Dan Lewis: So Python recognizes the indentation to see when to end the else condition?
A. Blake L Joyce: That's correct. Python indentation is part of the syntax and is required. If you remove the indentation, then anything in that line won't be part of the if/elif/else statement.
Chun Ly: I will add that this is a very common typo in coding: forgetting to indent on a line and then wondering why a line was run for all cases.
---
* [An introduction to Conda](https://astrobiomike.github.io/unix/conda-intro)
## Private notes section
**Sateesh**
binder - resource to spin jupyter notebooks on the fly
python -
---
:::info
Session Feedback :mega:
:::
Use the link below to provide your feedback on the session:
[**Session Feedback Form**](https://bit.ly/resbazfeedback)