pandas.col

pandas 3.1.1 · General functions · function

Create a deferred column expression for operations such as assign and loc.

Call syntax

pd.col(col_name)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
col_name Required
Positional or keyword
Hashable

Returns

pandas.api.typing.Expression