Skip to content

Instantly share code, notes, and snippets.

@psinger
psinger / pandas_groupby_apply_multiprocessing.py
Created November 5, 2019 14:08
Pandas groupby apply multiprocessing #python #pandas
from joblib import Parallel, delayed
import multiprocessing
import pandas as pd
import time
def applyParallel(dfGrouped, func):
retLst = Parallel(n_jobs=multiprocessing.cpu_count())(delayed(func)(group) for name, group in dfGrouped)
return pd.concat(retLst)
def myfunc(df)
return df
@mwaskom
mwaskom / seaborn_dark_background.ipynb
Created December 3, 2015 19:49
Use seaborn with a dark background, if you like that sort of thing.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 25, 2024 06:23
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname