'How to add confidence ellipse to sns scatterplot?

I performed PCA to my dataset (a dataframe), which has gene count numbers of cancer patients vs. non-cancer patients with the following code:

Sc = StandardScaler()
X = Sc.fit_transform(df)
pca = PCA(2)
pca_data = pd.DataFrame(pca.fit_transform(X),columns=['PC1','PC2'])
result = pd.concat([df, pca_data], axis=1, join='inner')
sns.scatterplot(x="PC1",y="PC2",
            hue="Disease",
            data=result)

I got the following plot: enter image description here

In the plot you can already see that healthy patients have another gene set than cancer patients. But I want to highlight this trend with confidence ellipses. How can I plot them into a sns.scatterplot? I want to highlight that "orange" vs "blue" group.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source