The Real Python Podcast

Making Each Line of Code Efficient & Python In Excel

Sep 8, 2023
Topics include Pythonic examples, language mistakes, Microsoft's Python in Excel beta program, PSF announcements, Polars DataFrame library showcase, immortal objects in Python, code image generator project, MS Paint clone in terminal, Django ORM cheatsheet.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Immortal Objects Reduce GC Overhead

  • PEP 683 introduces immortal objects to avoid GC churn for truly read-only objects.
  • Instagram's scale motivated marking objects immortal to reduce cross-process sync and memory overhead.
INSIGHT

Excel Uses Cloud Python Runtime

  • Python in Excel uses a cloud Anaconda runtime rather than the user's local Python install.
  • That design shapes security, dependencies, and the workflow between Excel and Python.
ADVICE

Convert Ranges To DataFrames With =PY

  • Use =PY and the built-in pandas DataFrame to convert Excel ranges to Python data frames quickly.
  • Push results back into Excel when ready to display processed tables in the sheet.
Get the Snipd Podcast app to discover more snips from this episode
Get the app