DataFrame.insert(self, loc, column, value, allow_duplicates=False)
[source]
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.
Parameters: |
|
---|
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.DataFrame.insert.html