Skip to content

Instantly share code, notes, and snippets.

View AlephNotation's full-sized avatar

Tynan Daly AlephNotation

View GitHub Profile
PostgreSQL Type PostgreSQL Size Description Range Diesel Type Rust Type
Nullable Types nullable Nullable``
@AlephNotation
AlephNotation / groupyby_parallel.py
Last active November 5, 2021 20:23 — forked from dmyersturnbull/groupyby_parallel.py
Performs a Pandas groupby operation in parallel
# coding=utf-8
import pandas as pd
import itertools
import time
import multiprocessing
from typing import Callable, Tuple, Union
def groupby_parallel(groupby_df: pd.core.groupby.DataFrameGroupBy,
func: Callable[[Tuple[str, pd.DataFrame]], Union[pd.DataFrame, pd.Series]],