我在下面的表格數據: 組織數據(熊貓據幀)
product/productId B000EVS4TY
1 product/title Arrowhead Mills Cookie Mix, Chocolate Chip, 1...
2 product/price unknown
3 review/userId A2SRVDDDOQ8QJL
4 review/profileName MJ23447
5 review/helpfulness 2/4
6 review/score 4.0
7 review/time 1206576000
8 review/summary Delicious cookie mix
9 review/text I thought it was funny that I bought this pro...
10 product/productId B0000DF3IX
11 product/title Paprika Hungarian Sweet
12 product/price unknown
13 review/userId A244MHL2UN2EYL
14 review/profileName P. J. Whiting "book cook"
15 review/helpfulness 0/0
16 review/score 5.0
17 review/time 1127088000
我想將它轉換成數據幀,使得在第一列
product/productId
product/title
product/price
review/userId
review/profileName
review/helpfulness
review/score
review/time
review/summary
review/text
項是列標題,其值與表中每個標題對應排列。
我想你需要轉置,df.T – Vaishali
我不明白你提供的示例行是否以任何文件格式存儲?它是否有任何列分隔符? – Pedro
數據以(.txt)格式堆疊(連續) –