Skip to content

Instantly share code, notes, and snippets.

View RodolfoFerro's full-sized avatar
🐍
I speak Python.

Rodolfo Ferro RodolfoFerro

🐍
I speak Python.
View GitHub Profile
@RodolfoFerro
RodolfoFerro / introducci-n-a-polars.ipynb
Created August 17, 2023 21:16
Introducción a Polars
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RodolfoFerro
RodolfoFerro / run_papermill.py
Created September 5, 2022 04:55
Gists for blog post about running notebooks in parallel. Ploomber, 2022.
# This requires:
# pip install papermill
import papermill as pm
from glob import glob
for nb in glob('*.ipynb'):
pm.execute_notebook(
input_path=nb,
output_path=nb,
@RodolfoFerro
RodolfoFerro / meses_con_e.py
Created September 2, 2022 15:55
Ejercicio de Clubes de Ciencia, 2020.
def meses_e(meses):
m_e = []
for x in range(0,len(meses)):
if meses[x].endswith('e'):
mes_e = meses[x]
m_e.append(mes_e)
return m_e
meses = [
@RodolfoFerro
RodolfoFerro / text-classifier-model.ipynb
Created August 5, 2022 17:08
Text Classifier Model
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RodolfoFerro
RodolfoFerro / twitter-data-extraction.ipynb
Created August 3, 2022 17:33
Twitter Data Extraction
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
intentos = 0
lim_inf, lim_sup = 0, 10
numero = int(input("Ingrese un dígito: "))
busqueda = 5
while True:
intentos += 1
if numero == busqueda:
break
elif numero > busqueda:
lim_inf, busqueda = busqueda, (busqueda + lim_sup) // 2
@RodolfoFerro
RodolfoFerro / miniconda_on_rpi.md
Created April 15, 2022 16:54 — forked from simoncos/miniconda_on_rpi.md
Install Miniconda 3 on Raspberry Pi