| [ Web Proxy ] |
| Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.DataFrame.assign.html | [Back] [Original] |
Section Navigation
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.
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.
A new DataFrame with the new columns in addition to all the existing columns.
Copyright 2019, Google.
Created using Sphinx 8.1.3.
Built with the PyData Sphinx Theme 0.19.0.
| Web Proxy Viewer | New URL | Original Page |