TL, DR Python lists are a great tool to handle data, and very often you will find useful to sort values in a list. There are two handy built-in methods to do so: sort() and sorted(). They sound similar, but they have quite different effects. Order matters Lists in Python are a great tool to… Continue reading Sorting list elements in Python: sort() and sorted()
Month: May 2022
Import NA strings in Pandas the right way
TL, DR Pandas has great parsing tools to let you import data from multiple file formats (CSV, Excel, etc…). Sometimes in your data you have “NA” strings that are valid values. However, Pandas default will consider those strings as markers for missing values. Below some option you can use to prevent this default and import… Continue reading Import NA strings in Pandas the right way
Access host resources from a Docker container
TL, DR Docker is a great platform for development and deployment of modern applications. Sometimes you need your Docker container to access some resource published on the host. This guide explains how to access host resources from a Docker container in Linux, Windows, and MacOS. Docker containers In today’s cloud environment Docker is one of… Continue reading Access host resources from a Docker container
How to check the health of your SSD or HDD?
TL, DR Sometimes you need to check the health status of a SSD or HDD. For instance, when you buy a second hand one. Or when you are preparing a RAID array and you want to make sure there is no disk close to its end-of-life. In Linux you can do so with a few… Continue reading How to check the health of your SSD or HDD?