[ Web Proxy ]
URL:
Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.DataFrame.assign.html [Back]  [Original]

bigframes.pandas.DataFrame.assign — bigframes documentation
Back to top
Search the docs ...:

bigframes.pandas.DataFrame.assign#

DataFrame.assign(**kwargs) DataFrame[source]#

Assign new columns to a DataFrame.

Returns a new object with all original columns in addition to new ones. Existing columns that are re-assigned will be overwritten.

Note

Assigning multiple columns within the same assign is possible. Later items in **kwargs may refer to newly created or modified columns in df; items are computed and assigned into df in order.

Parameters:

kwargs A dictionary of {str: values}. The column names are keywords. If the values (e.g. a Series, scalar, or array), they are simply assigned to the column.

Returns:

A new DataFrame with the new columns in addition to all the existing columns.

Return type:

bigframes.pandas.DataFrame


Web Proxy Viewer  |  New URL  |  Original Page