cudf.DataFrame.insert#

DataFrame.insert(loc, name, value, nan_as_null=None)#

Add a column to DataFrame at the index specified by loc.

Parameters
locint

location to insert by index, cannot be greater then num columns + 1

namenumber or string

name or label of column to be inserted

valueSeries or array-like
nan_as_nullbool, Default None

If None/True, converts np.nan values to null values. If False, leaves np.nan values as is.