You can wrestle with scientific-formatting yourself, or you can use the sciform package from Justin Gerber!
sciform is used to convert python numbers into strings according to a variety of user-selected scientific formatting options including decimal, binary, fixed-point, scientific and engineering formats, using documented standards wherever possible!
🐍 aprxc — A #Python#CLI tool to approximate the number of distinct values in a file/iterable using the (easy to understand) Chakraborty/Vinodchandran/Meel #algorithm¹.
My talk for Posette this year will be about "pgvector for Python developers" - two of my current fav things. The conf is virtual and free, so join us on June 12th!
(1/4) TIL about the plotnine library- the grammar of graphics in Python 🚀
I had never heard about the Plotnine library until I came across the Posit Plotnine contest (see the link below). The plotnine is a Python implementation of a grammar of graphics based on the ggplot2 library.
A lot of of #python people on social media such as LinkedIn will post "What do you think this python code will do? A, B, or C" questions.
Are these useful to anyone?
The code is generally of a style I'd recommend people avoid writing, or that I'd question in a code review. Often it's using strange edge-cases for what's possible...but not what's idiomatic or "good".
I can't imagine they're useful to people learning #python. I imagine they deter some people from using #python. Am I wrong?
@martinpeck These are the sort of questions I’d expect on a certification exam so unless I’m prepping for a specific certification, I tend to ignore them. For day to day developer use, I don’t find them particularly useful and usually ignore them.
To those who follow this account for #Covid rants and politely tolerate my posts about the wonderful and elegant #Python programming language I’ve used almost daily for over a decade: The #pycon2024 conference required masks because they apparently haven’t stopped caring about the people behind the keyboards.
Yes, masks. In 2024. At a tech conference. It’s a beautiful thing.