r/PythonLearning • • Oct 15 '26

First Steps into Frames in Python

https://tech.daniellbastos.com.br/posts/python-frame/
8 Upvotes

2 comments sorted by

1

u/Sea-Ad7805 Oct 15 '26

Maybe use recursion to explain Stack Frames, say this factorial example.

Each function call puts a new Stack Frame on the Call Stack, and each return removes the last Stack Frame.

0

u/[deleted] Oct 15 '26

Frames in Python is like an excel table. In python, it’s called a Dataframe (df), and it comes from a library called pandas. It has rows and columns, just like a spreadsheet.

The very first step into df is pandas. Install and import.