I want to standardize the score in each group. After I scaled the data, it returned a series. I cannot create a new column in my data frame and put results in it.
The result I got is like :
- 3M Company [[1.0], [1.0], [0.9]]
- A.O. Smith Corp [[1.0], [0.85]]
- AES Corp [[1.0], [0.5]]
The result I want is like:
- [1.0, 1.0, 0.9, 1.0, 0.85, 1.0, 0.5]
In that case, I can put it into new column in data frame. Can anyone help me? Thank you!!