๐ก Python radar - April 2022
A personal selection of Python-related news and projects that caught my attention this month (note: leading emojis are mine).
๐งฎ The Right Way to Compare Floats in Python (web.archive.org)
To understand why 0.1 + 0.2 == 0.3 returns False and how to approach it correctly, must read. [EDIT 2025-01-08: original link broken replaced by its Internet Archive link]
๐ฅ Efficient Pandas Dataframes in Python (youtu.be)
A very informative short video on the importance of properly typing your Pandas dataframes.
๐ง geohot/tinygrad (github.com)
A mini deep learning framework in under 1000 lines. I donโt know much about it, but it looks cool.
๐ Python & OpenGL for Scientific Visualization (labri.fr)
(2018) A well-crafted free book that, according to the author, reconciles Python and OpenGL, explaining both basic and advanced techniques for creating stunning visualizations.
๐ Python f-strings Are More Powerful Than You Might Think (martinheinz.dev)
You already have an idea of what f-strings do, here are other features that can prove very handy.
๐ฆ The best way to store data in python & pandas (youtu.be)
Another video by Rob Mulla (I like him) on different methods for efficiently storing Pandas dataframes.
๐ Memray: A Memory Profiler for Python (github.com)
A memory profiler that tracks all allocations, including those from C/C++ extensions (such as NumPy and Pandas), and boasts "blazing fast" performance. It's open-sourced by Bloomberg; why not!
โก reloadware/reloadium: Advanced hot reloading for Python (github.com)
A development tool that automatically re-runs the code being edited, currently a plugin for PyCharm only, worth trying.