Python Pandas:使用多级索引Series连接多级列DataFrame

时间:2018-08-08 07:14:42

标签: python pandas

以下是数据:

AndroidManifest.xml

我想像这样连接<meta-data android:name="com.facebook.sdk.ApplicationId" tools:replace="android:value" android:value="${facebook_app_id}" /> In [38]: df Out[38]: Ticker ARIRANG 200 KODEX 200 open high low close volume market_cap open high low close volume market_cap 2013-10-28 24704.0 24931.0 24704.0 24899.0 29475.0 318765.0 24750.0 24910.0 24717.0 24908.0 8272186.0 5355790.0 2013-10-29 24903.0 25083.0 24839.0 25019.0 21071.0 320306.0 24856.0 25044.0 24786.0 25003.0 9560053.0 5286600.0 2013-10-30 25062.0 25130.0 24911.0 25115.0 12269.0 321550.0 25077.0 25095.0 24888.0 25097.0 4888450.0 5301738.0 In [39]: df.dtypes Out[39]: Ticker ARIRANG 200 open float64 high float64 low float64 close float64 volume float64 market_cap float64 KODEX 200 open float64 high float64 low float64 close float64 volume float64 market_cap float64 dtype: object In [40]: series Out[40]: Ticker ARIRANG 200 open 24992.0 high 25037.0 low 24749.0 close 24808.0 volume 16591.0 market_cap 320260.0 KODEX 200 open 24971.0 high 25008.0 low 24717.0 close 24722.0 volume 4795640.0 market_cap 5323980.0 Name: 2013-10-31 00:00:00, dtype: float64

df

但是它发生了错误:

series

我尝试过的事情:

In [41]: pd.concat([df, series])

但是不起作用...

我该如何处理?

0 个答案:

没有答案