列我有一个DF与我想从行转换为列我看到的堆栈溢出大部分的解决方案只有2列 From DF PO ID PO Name Region Date Price
1 AA North 07/2016 100
2 BB South 07/2016 200
1 AA North 08/2016 300
2 BB South 08/2016 400
1 AA North 09/20
我有以下格式的表: A B C D
Spoons ID
38483
Date Amt Value Type
1/1/2017 2 12 Plastic
1/2/2017 4 30 Silver
1/3/2017 1 9 Wood
我如何写一个存储过程,这将导致下表中? Col1 Col2 Col3 Col4 Col5