1 回答

TA貢獻1811條經驗 獲得超4個贊
我們的確是explode
s = pd.DataFrame(nested,columns=['c1','c2']).explode('c2').reset_index(drop=True)
# if only need to split the tuple , you do not need to do the next steps
將元組拆分為單列
s = s.join(pd.DataFrame(s['c2'].tolist()))
s
Out[162]:
c1 ... 1
0 53062423-690f-4923-8f65-db710c038566 ... AFC_PoCv1.0
1 53062423-690f-4923-8f65-db710c038566 ... Customer Profitability Sample
2 53062423-690f-4923-8f65-db710c038566 ... Jammers vs Floaty Pants
3 988f64ea-14b2-4ad7-a899-ae40974c9139 ... DailySalesDashboard13Azure
[4 rows x 4 columns]
添加回答
舉報