I'm trying to transform a numpy nd array into a pandas column, but the data is coming with brackets.
This is my np array:
array([[[ 7.10105920e+07],
[ 9.18736320e+07],
[ 8.35562800e+07],
[ 7.16590640e+07],
[ 8.28060960e+07],
[ 6.77042000e+07],
[ 7.07195360e+07],
[ 1.04754616e+08],
[ 7.27420400e+07],
[ 7.33461760e+07],
[ 6.34156040e+07],
[ 8.00440800e+07],
This is how I'm sending to the dataframe:
predictions = pd.DataFrame()
predictions['y_test'] = Y_test[0].tolist()
This is what I'm getting:
y_test
0 [71010592.0]
1 [91873632.0]
2 [83556280.0]
3 [71659064.0]
4 [82806096.0]
5 [67704200.0]
6 [70719536.0]
7 [104754616.0]
8 [72742040.0]
9 [73346176.0]
How can I remove the brackets ([])?