Skip to content

Instantly share code, notes, and snippets.

Tejas Lodaya tejaslodaya

Block or report user

Report or block tejaslodaya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tejaslodaya
tejaslodaya / apply_df_by_multiprocessing.py
Created Feb 3, 2017
pandas DataFrame apply multiprocessing
View apply_df_by_multiprocessing.py
import multiprocessing
import pandas as pd
import numpy as np
def _apply_df(args):
df, func, num, kwargs = args
return num, df.apply(func, **kwargs)
def apply_by_multiprocessing(df,func,**kwargs):
workers=kwargs.pop('workers')
You can’t perform that action at this time.