我需要从一列的行值派生列。
这是行数据。
CustomerID Activity Date
10001 Active 2018-06-21
10001 Inactive 2018-06-25
10001 Active 2018-08-22
10001 Inactive 2018-10-06
这是我想要得到的输出:
CustomerID ActiveDate InactiveDate
10001 2018-06-21 2018-06-25
10001 2018-08-22 2018-10-06
请帮忙!谢谢!