Skip to content

Instantly share code, notes, and snippets.

View lucasrodes's full-sized avatar

Lucas Rodés-Guirao lucasrodes

View GitHub Profile
"""Checking if `people_fully_vaccinated` metric (from Our World in Data vaccination dataset) follows Benford's Law.
Reference: https://twitter.com/lucasrodesg/status/1425770193993744386?s=20
"""
import os
from datetime import datetime, timedelta
import pandas as pd
import numpy as np
from plotly.offline import plot
@lucasrodes
lucasrodes / medium-whatstk.ipynb
Last active July 20, 2024 11:04
Gist with notebook complementing my post on Medium
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucasrodes
lucasrodes / VENVJUPYTER.md
Last active November 4, 2022 08:42
Setting a Virtual Environment In Jupyter Notebooks

If you are using a virtual environment, follow the steps below to setup it for the Jupyter Notebook.

Enter your virtual environment

$ source <envname>/bin/activate

Install IPykernel

@lucasrodes
lucasrodes / setup_virtualenv.md
Created July 23, 2017 22:44
Setting up a Virtual Environment in Python

Install virtualenv

$ pip3 install virtualenv

If this raises an error, try installing sudo apt install python3-venv

Create a new virtualenv

$ python3 -m venv <envname>