I was wondering how I can plot a correlation circle after a PCA.
I came accross this subject: Plot a Correlation Circle in Python.
But the code given in the answer doesn't plot the graph shown in the question message (which is what I want) but something else.
I also found out about a module called Prince which is supposed to have a function plotting a correlation circle, but it's not working for me, I get an assertion error :
assert k > 0
AssertionError
And here is my code (i got the dataframe from a SQL query and it's ok) :
pca = prince.PCA(df, n_components=2)
pca.plot_correlation_circle()
plt.show()
So, does anyone know how to use prince's PCA or simply how to plot a correlation circle in Python?