transform 1D array of list to 2D array

后端 未结 0 1456
死守一世寂寞
死守一世寂寞 2020-12-09 10:22

For example

import pandas as pd
d1 = pd.Series([\'a b\', \'c d\'])
t1 = d1.str.split()
a1 = t1.values

where a1 would be

array(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题