Skip to content
masterclass Buddy

Pandas · Method

df.map

Apply a scalar function to every cell of a DataFrame. Missing values can be skipped, and extra keyword arguments can be passed to the function.

Last updated

Since
2.1.0

Syntax

DataFrame.map(func, na_action=None, **kwargs)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • DataFrame.apply
  • DataFrame.replace
  • Series.map

Source: pandas.DataFrame.map — pandas 3.1.0 documentation. Checked 2026-11-03.