I am trying to convert the below dense vector, where i get by taking the coefficients of multiple linear regression models. I want to convert this to a data frame
lr_coefficients = lr_model.coefficients
lr_coefficients.append(lr_coefficients)
lr_coefficients
[DenseVector([-0.0009, -0.2476, 0.5486, 0.396]),
DenseVector([-0.0016, -1.5333, 0.4269, 0.4363]),
DenseVector([-0.0492, 0.0, 0.2077, 0.7548]),
DenseVector([-0.001, -1.2098, 0.545, 0.4148]),
DenseVector([-0.0001, 0.0, 0.575, 0.3638]),
DenseVector([-0.001, -1.3361, 0.5402, 0.4113]),
DenseVector([-0.0049, -1.5534, 0.5747, 0.3934]),
DenseVector([-0.0049, -1.5534, 0.5747, 0.3934]),
DenseVector([-0.0049, -1.5534, 0.5747, 0.3934]),
DenseVector([-0.0049, -1.5534, 0.5747, 0.3934]),
DenseVector([-0.0049, -1.5534, 0.5747, 0.3934]),
DenseVector([-0.0049, -1.5534, 0.5747, 0.3934])]
I want each coefficient in a column. Like the table below
I have tried the below link but did not work for me.