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
, convertsnp.nan
values tonull
values. IfFalse
, leavesnp.nan
values as is.