TL, DR PyScript is a new and cool piece of technology that let you use Python in the browser. In this tutorial we will embed a PyScript REPL in a webpage. More tutorials on PyScript to come! Embed a PyScript REPL in a webpage Python is famous for running everywhere. Jupyter Notebooks enabled professionals and… Continue reading PyScript REPL in a webpage
Author: randomds
Export a Pandas DataFrame to HTML table
TL, DR If you ever tried to write a big table in HTML from scratch, you know how much it can be tedious. Fortunately, there are ways to convert data from a Pandas DataFrame to a HTML table with a simple call. Making tables in HTML from Pandas DataFrames HTML is the standard language of… Continue reading Export a Pandas DataFrame to HTML table
Create a Latex table from a CSV files
TL, DR If you ever tried to write a big table in Latex from scratch, you know how much it can be tedious. I wrote a small application leveraging Python Pandas and PySimpleGUI to create a Latex tables from any CSV file. Making tables in Latex from CSV files In a previous post I already… Continue reading Create a Latex table from a CSV files
Transform a Pandas DataFrame to Latex table
TL, DR If you ever tried to write a big table in Latex from scratch, you know how much it can be tedious. Fortunately, there are ways to convert data from a Pandas DataFrame to a Latex table with a simple call. Making tables in Latex from Pandas DataFrames Latex is known as the “gold… Continue reading Transform a Pandas DataFrame to Latex table
Collaborative edit for Jupyter Notebooks
TL, DR Jupyter Notebooks are one of the most common tools for data scientist to explore new challenges and prototype solutions. In most cases, this process is a collaborative one. And since a couple of years, it would be quite common that you will interact with your co-workers remotely. Collaborative edit capabilities for Jupyter Notebooks… Continue reading Collaborative edit for Jupyter Notebooks
Collaborative Latex editing with Overleaf
TL, DR Latex is the “gold standard” for writing academic papers. And it will be quite common to have co-authors in your research. How can you be collaborative and work simultaneously to edit the same paper using Latex, keeping consistency and immediately noticing somebody else’s updates? Overleaf is the ultimate answer. You can create a… Continue reading Collaborative Latex editing with Overleaf
Sorting list elements in Python: sort() and sorted()
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()
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?