从 2 个字典创建多索引 df

时间:2021-03-14 10:06:56

标签: python pandas dataframe

我有 2 个听写:

times = {'func': 50, 'batch': [0,50]}
limit_to_fetch_size = {100: [10, 100]}

times 是我从函数中多次获得的东西,而 limit_to_fetch_size 是我在创建多索引 df 之前声明的东西,我每次都在其中附加我的时间字典

我想变成这样:

          func              batch
100 10    50                [0,50]              
    100   <new_func_num>    <new batch list>        

0 个答案:

没有答案