我有一个T 2D数据帧,如下所示:
dfB = pd.DataFrame([[cheapest_brandB[0],wertBereichB]], columns=['brand', 'price'], index=
['cheap'])
dfC = pd.DataFrame([[cheapest_brandC[0],wertBereichC]], columns=['brand', 'price'], index=
['cheap'])
the Result :
brand price
cheap ASUS 200
brand price
cheap HP 500
我如何合并2d并将其转换为3d数据帧,其中每个2d列都以游戏或休闲的名称命名.
i want somthing like that :
Gaming Casual
brand price brand price
cheap ASUS 200 HP 500
有人能帮我吗?