pd_multiprocessing provides a simple, parallelized function to apply a user defined function rowwise on a Pandas Dataframe.
Project description
pd_multiprocessing
pd_multiprocessing provides a simple, parallelized function to apply a user defined function rowwise on a Pandas Dataframe.
Usage
A typical usage looks like this
import pandas as pd
from pd_multiprocessing.map import df_map
def twotimes(row):
row['col2'] = row['col1']*2
return row
if __name__ == '__main__':
df = pd.DataFrame.from_dict({'col1': range(100)})
print(df_map(twotimes, df))
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 Distribution
Built Distribution
Close
Hashes for pd_multiprocessing-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b578f54f0d90c18f16dcd745d9c1ba29228b26f6b7d7a1d6fd35ca7b0ee749f2 |
|
MD5 | 2818061d1adda9df47330fed7076b287 |
|
BLAKE2b-256 | 67e812f533d9ca79b742c591fbfbcc57b5e2c9a52e6090463ee0fa2758a1c6b8 |