Insert column into DataFrame at specified location.
Raises a ValueError if column is already contained in the DataFrame, unless allow_duplicates is set to True.
loc (int) – Insertion index. Must verify 0 <= loc <= len(columns).
column (str, number, or hashable object) – Label of the inserted column.
value (int, Series, or array-like) –
allow_duplicates (bool, optional) –
上一页
mars.dataframe.DataFrame.iloc
下一页
mars.dataframe.DataFrame.iterrows