Building modular shelves with tetris pieces

Idea I’ve an interesting project that’s a bit data related but not only. In my living room, I’ve a sort of opening in the wall between the door and kitchen...

Tips while creating PDFs inside a docker image with WeasyPrint

Recently at Homagames, we wanted to improve certain pdf reports that we are producing once a month. PDF reports were already in place but they were generated via an excel...

Pandas: Better performance on `diff()` over grouped data

Recently, I needed to do small manipulation on a relatively big data frame. In this data frame, I had cumulated revenues per some dimensions/categories and I wanted to calculate discrete...

Pandas: Group and aggregate when some data is missing

While crunching data, now and then we group data based on certain variables(usually dimensions) and generate some summarized variables(usually metrics). pandas usually works quite nicely but in some cases, results...