hipdf.DataFrame.insert

hipdf.DataFrame.insert#

20 min read time

Applies to Linux

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

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.