Carpentry@UiO Plotting and Programming in Python Q&A note

This is cleaned Q&A note taken in CodiMD for “Carpentry@UiO Plotting and Programming in Python workshop” on 2021 Mar 2-3.

- Lesson material of this workshop: Plotting and programming in Python, episodes 1-16.
- Please complete The Carpentries Post-workshop survey as well!

Table of Contents

Table of contents generated with markdown-toc

Day 1

Questions in Ep. 1-3

(Example of questions and answers)

(End of example of questions and answers)

Exercises part 1

Ep. 2 Variables and Assignment

Predicting Values

Slicing practice

Ep. 3 Data Types and Type Conversion

Fractions

Automatic Type Conversion

Arithmetic with Different Types

Questions in Ep. 4-6

Exercises part 2 until 10:50

Spot the Difference

Jigsaw Puzzle (Parson’s Problem) Programming Example

When is Help Available?

There are Many Ways To Import Libraries!

For the next session, please down load Gapminder dataset, unzip it and have it on the desktop in "data" folder
handwritten circle on data folder shown in the Jupyter Lab left-side menu

Questions in Ep. 7-8

Exercises part 3: until 11:50

Ep. 7 Reading Tabular Data into DataFrames

Reading Other Data

Ep. 8 Pandas DataFrames

Selection of Individual Values

Reconstructing Data

Questions and comments at the end of Day 1

Day 2

Icebreaker questions and answers

What do you think is the best about Day1 of this workshop?

Where do you want to go first when we can go abroad without any quarantine?

Questions in ep. 9-11 (Plotting/Lists)

Please write questions below

Exercises part 1

Ep. 9 Plotting

Minima and Maxima

(Extra: Correlations)

Ep. 11 Lists

Fill in the Blanks

Working With the End

Slice Bounds

Questions in ep. 12-14 (For Loops/Conditionals/Looping Over Data Sets)

Please write questions below

Exercises part 2 until 10:50

If you need more time, please write here!

10 more minutes please?

Ep. 12 For Loops

Reversing a String

Cumulative Sum

(extra: Practice Accumulating)

Ep. 13 Conditionals

Trimming Values

Here’s some bonus questions if you’ve done them all:

Questions in Ep. 16 (Writing Functions)

Exercises part 3 Until 11:45

Ep. 16 Writing Functions

Encapsulation

Calling by Name

(extra: Encapsulating Data Analysis)

Questions at the end of Day 2