---
title: Leveraging Swifter for Pandas Lambda function
url: https://alex.dinnouti.com/posts/swifter-pandas-lambda/
date: 2020-02-05
tags: Python, Pandas
---


Leveraging Swifter for Pandas Lambda function:

{{< highlight python >}}
import swifter

df['new_column'] = df.swifter.progress_bar(True).apply(lambda x: some_function(x['existing_column']),axis=1)
{{< / highlight >}}

