I have the following dataframe in pandas:
a = ['[16.01319488 6.1095932 -0.14837995]',
'[16.10400501 6.23724404 -0.1727245 ]',
'[16.195107 6.36434895 -0.19695716]',
'[16.2864465 6.49178233 -0.22124142]',
'[16.37796913 6.62041857 -0.24574078]',
'[16.46962054 6.75113206 -0.27061875]',
'[16.56134636 6.88479719 -0.29603881]',
'[16.65309334 7.02229002 -0.32216479]',
'[16.74480491 7.16448166 -0.34915957]',
'[16.83642781 7.31224812 -0.37718693]',
'[16.92790769 7.46646379 -0.4064104 ]',
'[17.0190533 7.62784345 -0.4369622 ]',
'[17.10912594 7.79646343 -0.46884957]',
'[17.19725 7.97224045 -0.50204846]']
b = [0.0,
0.01999999989745438,
0.03999999979490875,
0.05999999969236312,
0.0799999995898175,
0.09999999948727188,
0.1199999993847262,
0.1399999992821806,
0.159999999179635,
0.1799999990770894,
0.1999999989745438,
0.2199999988719981,
0.2399999987694525,
0.2599999986669069]
b
dDictionary = {
'A':a,
'B': b
}
test = pd.DataFrame(dDictionary)
Each value in Column 'A' consists of three values that I want to split into three seperate columns. Is there a simple and robust way to do this?