r/PythonLearning • u/dfbaggins • 15h ago
First Steps into Frames in Python
https://tech.daniellbastos.com.br/posts/python-frame/
6
Upvotes
1
u/Sea-Ad7805 14h ago
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/melisa_050 15h ago
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.