I am trying to plot a pie chart but not getting the labels at correct position . here is my code
import pandas as pd
%matplotlib inline
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
labels=Main_df['Rel_Category']
values = Main_df['Percentage']
explode = (0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1)
pie = plt.pie(values, labels=labels, explode=explode, shadow=True,
autopct='%1.1f%%')
plt.legend(pie[0], labels, loc="upper corner")
This is a link to image of pie chart I am getting. Pie chart This is the data frame from where i am taking values
data frame I am new to stackoverflow hence the images are in links.