Answers for "map dataframe parallel"

0

map dataframe parallel

from pandarallel import pandarallel
from math import sin

pandarallel.initialize()

def func(x):
    return sin(x**2)

df.parallel_apply(func, axis=1)
Posted by: Guest on August-17-2021

Python Answers by Framework

Browse Popular Code Answers by Language