hipdf.DataFrame.insert

hipdf.DataFrame.insert#

21 min read time

Applies to Linux

DataFrame.insert(loc, column, value, allow_duplicates: bool = False, nan_as_null=<no_default>)#

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

columnnumber or string

column or label of column to be inserted

value : Series or array-like nan_as_null : bool, Default None

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