Series.reset_index(level=None, drop=False, name=None, inplace=False)
[source]
Analogous to the pandas.DataFrame.reset_index()
function, see docstring there.
Parameters: |
level : int, str, tuple, or list, default None Only remove the given levels from the index. Removes all levels by default drop : boolean, default False Do not try to insert index into dataframe columns name : object, default None The name of the column corresponding to the Series values inplace : boolean, default False Modify the Series in place (do not create a new object) |
---|---|
Returns: |
resetted : DataFrame, or Series if drop == True |
© 2011–2012 Lambda Foundry, Inc. and PyData Development Team
© 2008–2011 AQR Capital Management, LLC
© 2008–2014 the pandas development team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.19.2/generated/pandas.Series.reset_index.html