In the links below, I present the application of PCA on two different datasets.
In the IRIS dataset example, I have used PCA to enable 2D visualization.
In the MNIST dataset example, I have used PCA and then applied Logistic Regression.
IRIS: https://colab.research.google.com/drive/1ezgKSqnvXRSi0eAu53ttQLkVIUy4PmAU?usp=sharing
MNIST: https://colab.research.google.com/drive/1Bjw52c1ZGmbK8eU6cCv0mUyFt-3K5fWa?usp=sharing