df.reset_index(level=2, drop=True)
Out[29]:
A
1 1 8
3 9
More Related Contents:
- How do I melt a pandas dataframe?
- Select rows in pandas MultiIndex DataFrame
- Construct pandas DataFrame from items in nested dictionary
- Converting a Pandas GroupBy output from Series to DataFrame
- How to split data into 3 sets (train, validation and test)?
- Nested dictionary to multiindex dataframe where dictionary keys are column labels
- selecting from multi-index pandas
- Requirements for converting Spark dataframe to Pandas/R dataframe
- How to flatten a hierarchical index in columns
- Pandas: add a column to a multiindex column dataframe
- Pandas, group by count and add count to original dataframe?
- Turn Pandas Multi-Index into column
- Adding a column thats result of difference in consecutive rows in pandas
- Python/Pandas: counting the number of missing/NaN in each row
- pandas dataframe group and sort by weekday
- Merge two data frames based on common column values in Pandas
- Filling in date gaps in MultiIndex Pandas Dataframe
- Splitting multiple columns into rows in pandas dataframe
- Sum columns by level in a pandas MultiIndex DataFrame
- Pandas- Select rows from DataFrame based on condition
- Why are Pandas and GeoPandas able to read a database table using a DBAPI (psycopg2) connection but have to rely on SQLAlchemy to write one?
- Scrape tables into dataframe with BeautifulSoup
- Multi Index Sorting in Pandas
- How to drop rows of Pandas DataFrame whose value in a certain column is NaN
- Remove duplicate rows from Pandas dataframe where only some columns have the same value
- How to switch columns rows in a pandas dataframe
- How to convert a dataframe to a dictionary
- Read CSV into a dataFrame with varying row lengths using Pandas
- Filling missing values using forward and backward fill in pandas dataframe (ffill and bfill)
- How to upload a CSV file in FastAPI and convert it into a Pandas Dataframe?