我正在寻求一些关于理解将配置单元中的Map转换为列(转置)的可能性的建议。下面给出了一些示例记录以及我喜欢如何表示它们。
{"AR":["Fasdfadsfasd","Hasdfasdf"]}
{"DR":["Aasdfads","Baasdfasdf","Iasdfadsf","Zasdfasdf"]}
{"PR":["Easdfadsf","Gasdfadsfads"]}
{"SR":["Casdfasdf","Dasdfadsf","Jasdfasdfa"]}
AR DR PR SR
Fasdfadsfasd Aasdfads Easdfadsf Casdfasdf
Hasdfasdf Baasdfasdf Gasdfadsfads Dasdfadsf
NULL Iasdfadsf NULL Jasdfasdfa
NULL Zasdfasdf NULL NULL
谢谢你的帮助!
1条答案
按热度按时间jjhzyzn01#
请参见代码中的注解。并非有意将转换步骤组合在一起以使其更易于理解:
结果: