pandas.Series.reset_index — pandas 1.3.5 documentation
pandas.pydata.org › pandasFor a Series with a MultiIndex, only remove the specified levels from the index. Removes all levels by default. drop bool, default False. Just reset the index, without inserting it as a column in the new DataFrame. name object, optional. The name to use for the column containing the original Series values. Uses self.name by default.