Adding explode affect to a pandas pie chart
问题 Following this question I want to add the exploded effect to the pie chart. Consider the below code: import pandas as pd df = pd.DataFrame(["man", "woman", "man", "other", "other", "man", "woman"], columns=["gender"]) df['gender'].value_counts(normalize=True).plot( kind='pie', shadow=True, autopct='%1.1f%%') which result in Now I want to add the explode=explode feature to the plot but I can't (e.g., here). The commands df['gender'].value_counts(normalize=True).plot( kind='pie', shadow=True,