Wrapper for df and df[col].apply parallelized
Project description
pandas-parallel-apply
df.apply(fn)
and df[col].apply(fn)
wrappers with tqdm included
Installation
pip install pandas-parallel-apply
Usage
Apply on each row of a dataframe
df.apply(fn)
-> apply_on_df_parallel(df: pd.DataFrame, fn: Callable, n_cores: int, pbar: bool = True)
Apply on a column of a dataframe and return the Series
df[col].apply(fn)
-> apply_on_df_col_parallel(df: pd.DataFrame, col_name: str, fn: Callable, n_cores: int, pbar: bool = True)
Switches for boolean parallel/non-parallel
apply_on_df_maybe_parallel(df: pd.DataFrame, fn: Callable, parallel: bool, n_cores: int, pbar: bool = True)
and
apply_on_df_col_maybe_parallel(df: pd.DataFrame, col_name: str, fn: Callable, parallel: bool, n_cores: int, pbar: bool = True)
That's all.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pandas_parallel_apply-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab0becdf4b93c4df9997c6352f7ef45272517c7cc91f8fdb5812f428d5a5f97b |
|
MD5 | 49852820e87f0f7c4e1322b70cf69462 |
|
BLAKE2b-256 | b083d0a9463180fd04b9f13d5385f5f6546d40bb80c5c0aa99deffb9dfac0974 |