pandas.DataFrame.get

DataFrame.get(key, default=None)[source]

Get item from object for given key (ex: DataFrame column).

Returns default value if not found.

Parameters
keyobject
Returns
valuesame type as items contained in object