.matshow(df.loc[rndperm[i],feat_cols].values.reshape((28,28)).astype(flo…e(0,30): ax = fig.add_subplot(3,10,i+1, title='Digit: ' + str(df.loc[rndperm[i],'label']) ) ax.matshow(df.loc[rndperm[i],feat_cols].values.reshape((28,28)).astype(float))Visualising high-dimensional datasets using PCA and t-SNE in Python4.2K14Luuk DerksenFlorian KräutliFollowAug 25, 2017 · 1 min readmissing indent?