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
Tag: Python
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
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
Google Foobar Challenge level 5 – Expanding Nebula
TL, DR Google Foobar is a hidden coding challenge by Google, and Expanding Nebula is the challenge I solved using Python in order to complete level 5. This post is part of a series on Google Foobar, with all the challenges I encountered. The full series is available here. Getting ready to run The ninth… Continue reading Google Foobar Challenge level 5 – Expanding Nebula
Google Foobar Challenge level 4 – Escape Pods
TL, DR Google Foobar is a hidden coding challenge by Google, and Escape Pods is the challenge I solved using Python in order to complete level 4. This post is part of a series on Google Foobar, with all the challenges I encountered. The full series is available here. Getting ready to run The eighth… Continue reading Google Foobar Challenge level 4 – Escape Pods
Google Foobar Challenge level 4 – Free the Bunny Workers
TL, DR Google Foobar is a hidden coding challenge by Google, and Free the Bunny Workers is the challenge I solved using Python in order to progress in level 4. This post is part of a series on Google Foobar, with all the challenges I encountered. The full series is available here. Getting ready to… Continue reading Google Foobar Challenge level 4 – Free the Bunny Workers