Initiating PCA to reduce dimensions aka features to 3 and transforming the data

PHOTO EMBED

Tue May 21 2024 08:54:14 GMT+0000 (Coordinated Universal Time)

Saved by @Uncoverit #python

# Initiating PCA to reduce dimensions aka features to 3 and transforming the data
dim_ds = pd.DataFrame(PCA(n_components = 3).fit_transform(df_scaled), columns = ['column1', 'column2', 'column3'])
dim_ds.describe().T
content_copyCOPY