How To Apply a Function To Columns in Pandas

Discussing when to use apply() or map() when applying functions to pandas columns and how to do it more efficiently

Giorgos Myrianthous
Towards Data Science
3 min readSep 25, 2021

--

Introduction

The application of a particular function over pandas columns is a quite common approach when it comes to data transformation. In today’s short guide…

--

--

I strive to build data-intensive systems that are not only functional, but also scalable, cost effective and maintainable over the long term.