How to slice a dataframe with multi index by row number (which is not in index) without destroying the index?

前端 未结 0 1052
春和景丽
春和景丽 2020-12-04 02:18
import pandas as pd
import numpy as np

mux = pd.MultiIndex.from_arrays([
    list(\'aaaabbbbbccffffddd\'),
    list(\'tuvwtuvwtuvwtuvw\')
], names=[\'one\', \'two\'])         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题