text_html_output_1.png
"""
cols = ['pCut::Motor_Torque',
       'pCut::CTRL_Position_controller::Lag_error',
       'pCut::CTRL_Position_controller::Actual_position',
       'pCut::CTRL_Position_controller::Actual_speed',
       'pSvolFilm::CTRL_Position_controller::Actual_position',
       'pSvolFilm::CTRL_Position_controller::Actual_speed',
       'pSvolFilm::CTRL_Position_controller::Lag_error', 'pSpintor::VAX_speed',
       'Mode']
pca = PCA(n_components=2)
data_pca = pca.fit_transform(data[cols].values)
#data['pca-one'] = data_pca[:,0]
#data['pca-two'] = data_pca[:,1] 
print('Explained variation per principal component: {}'.format(pca.explained_variance_ratio_))
"""