glide.extensions.swifter module

https://github.com/jmcarpenter2/swifter

class glide.extensions.swifter.SwifterApply(name, _log=False, _debug=False, **default_context)[source]

Bases: glide.core.Node

Apply a Swifter transform to a Pandas DataFrame

run(df, func, threads=False, **kwargs)[source]

Use Swifter apply() on a DataFrame

Parameters
  • df (pandas.DataFrame) – The pandas DataFrame to apply func to

  • func (callable) – A callable that will be passed to df.swifter.apply

  • threads (bool) – If true use the “threads” scheduler, else “processes”

  • **kwargs – Keyword arguments passed to Dask df.swifter.apply