如何解决如何将字符串中包含数组的numpy字符串数组转换为字符串数组?
我有<class 'numpy.ndarray'>
类型的数据,每个字符串中都有一个包含字符串的数组。
['[ABC]' '["ABC"]' '["ABC" "Pasticultores del Desierto"]'
'[UNIQUE Forestry and Land Use]' '[]' '[Urapi Sustainable Land Use]'
'[CARANA]' '[AF]' '[AAF]' '[CATIE]' '["Moring" "CIRAD"]' '[Moringa]'
'[12Tree Finance]' '["AF" "CIMA"]' '["Andes Amazon Fund"]'
'[Kaeté_Investimentos]' '[Pomeroon]' '[FCCF]' '[12Tree Fund]' '[12Tree]'
'[Symbiosis_Investimentos]' '[LLC]' '[AIDER]' '[WRI]' '[ISA]']
我正在尝试将它们转换为内部包含字符串数组的数组。
[["ABC"],["ABC"],["ABC","Pasticultores del Desierto"],["UNIQUE Forestry and Land Use"],[],["Urapi Sustainable Land Use"],["CARANA"],["AF"],["AAF"],["CATIE"],["Moring","CIRAD"],["Moringa"],["12Tree Finance"],["AF","CIMA"],["Andes Amazon Fund"],["Kaeté_Investimentos"],["Pomeroon"],["FCCF"],["12Tree Fund"],["12Tree"],["Symbiosis_Investimentos"],["LLC"],["AIDER"],["WRI"],["ISA"]]
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。