Here's what i have so far:
data.shape: # data == my dataframe
(768, 9)
data2 = pd.DataFrame(data) # copy of data
array = data.values # convert data to arrays
X = array[:,0:8]
Y = array[:,8]
# perform a transformation on X
Xrescaled = scaler.transform(X)
How can i replace each column of the dataframe, data2 with the corresponding column in the array, Xrescaled? Thanks.