Skip to content

Instantly share code, notes, and snippets.

Ujjwal Kumar kujjwal02

Block or report user

Report or block kujjwal02

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
kujjwal02 /
Last active May 11, 2019
Parallel apply pandas
# Source:
def parallelize_dataframe(df, func, n_cores=4):
df_split = np.array_split(df, n_cores)
pool = Pool(n_cores)
df = pd.concat(, df_split))
return df
You can’t perform that action at this time.