Skip to content
← All articles
Article

Teaching Python through an end-to-end data workshop

Listen to the audio story

From setup to a stock chart in nine notebooks · 2:29 · AI-written script, synthetic voices

Transcript

Ava: Picture a beginner on day one of learning Python. By the end of the workshop, they're plotting Apple's stock price with five moving average curves. How do you get someone from zero to that?

Andrew: That's a big jump. I'd guess most beginner courses lose people somewhere around installing things.

Ava: Antoine's AlgoETS Workshop1 is built to avoid exactly that. It's a GitHub repository with nine Jupyter notebooks, spread over six numbered folders. Each folder gives the next concept somewhere to go.

Andrew: So it's like a staircase rather than a pile of lessons.

Ava: Exactly. First comes setup, then Python basics and more advanced Python, then reading an API response, then cleaning and exploring data with pandas, then two notebooks on visualization, and finally a project that ties it all together.

Andrew: What about the setup part? That's usually where people give up.

Ava: The README offers a Colab link, so you can start writing code in your browser right away. Running Jupyter locally is documented too. So setup is its own topic, but it never blocks the first lesson.

Andrew: Nice. And the final project is the Apple stock one?

Ava: Yes. The last notebook asks for Apple price data, then plots the closing price along with exponential moving averages over 12, 26, 50, 100 and 200 days. Think of an EMA as a smoothed line that follows the price, with the shorter ones hugging it and the longer ones drifting behind.

Andrew: So you use everything you learned. A request, a table, new columns, and a labeled chart.

Ava: Right, and that's why it works as teaching. You can ask real technical questions of the chart. Are the dates in order? Why does a longer average react more slowly? Are all the curves computed from the same observations?

Andrew: Those are great classroom questions. And the numbered folders mean you can go back to one idea without redoing the whole thing.

Ava: Exactly. If pandas feels shaky, you jump back to that folder and come forward again.

Andrew: Does it lead anywhere after the chart?

Ava: Antoine describes a natural next step, his BatchBacktesting project. Same indicator idea, but run across many instruments with the assumptions recorded, so results are comparable.

Andrew: So understand one chart first, then scale it up.

Ava: That's the takeaway. Give each concept a place to land, and a beginner ends up reading real data and real code. The full write-up has the flow diagram and links to every notebook.

AlgoETS artwork used in the workshop repository
Table of contents

The most useful beginner workshop gives each new concept somewhere to go. AlgoETS/Workshop1 moves from Python setup to an API response, a DataFrame, and a chart. The final notebook uses Apple price data and exponential moving averages to bring those steps together.

1. Nine notebooks, six stages

The repository contains nine Jupyter notebooks across six numbered directories: two setup notebooks, two Python notebooks, one API notebook, one pandas notebook, two visualization notebooks, and one final project.

This is a count of checked-in teaching material, not a student attendance or completion statistic.

flowchart TD
  S["Environment and cloud notebooks"] --> P["Python basics and advanced concepts"]
  P --> A["Read API responses"]
  A --> D["Clean and explore with pandas"]
  D --> V["Visualize the data"]
  V --> E["Apple prices and EMA project"]

2. Keep setup from swallowing the lesson

The README links a Colab entry point[1]. Local Jupyter is also documented. Offering both lets learners begin with code while keeping environment setup available as its own topic.

The six-stage structure makes it possible to return to a missing concept without restarting the entire project.

3. The final exercise is concrete

The code in 5.1_project_ema.ipynb[2] plots Apple closing prices with 12-, 26-, 50-, 100-, and 200-day EMA curves. This is a more precise description than the README’s broad “advanced exploration and modeling” language.

The exercise connects a request, tabular data, indicator columns, and a labeled chart. It does not establish that any crossover makes money.

4. Read the chart as a data exercise

Useful classroom questions are technical: are dates ordered correctly? Were missing values removed intentionally? Why does a longer EMA respond more slowly? Are all curves computed from the same observations?

API availability, keys, and package versions can change since the original workshop. The notebooks are teaching material to inspect and adapt, not a promise of a fresh one-command environment.

5. From one chart to a batch experiment

The natural continuation is BatchBacktesting: the same indicator idea, now evaluated across instruments with recorded assumptions and comparable outputs.

That progression keeps the focus on understanding data and code before interpreting a leaderboard.

6. Sources

References

  1. Colab entry point. (). [Web page] colab.research.google.com.
  2. AlgoETS. (). 5.1_project_ema.ipynb. [Source file or documentation] github.com.
  3. AlgoETS. (). Workshop1. [Software repository] github.com.
  4. AlgoETS. (). Python basics notebook. [Source file or documentation] github.com.

References use this article’s publication date.