I selected categories from my data frame, please, see below, and need to plot pie charts for all categories. However, all data are plotted together on a single chart. Do you have any suggestions on how to solve it?
num_var = census.select_dtypes(include=['number']).columns.tolist()
num_var
['age', 'det_ind_code', 'det_occ_code', 'wage_per_hour', 'capital_gains', 'capital_losses', 'stock_dividends', 'continuous_?', 'num_emp', 'own_or_self', 'vet_benefits', 'weeks_worked', 'year']
for item in cat_var:
census[item].value_counts().plot.pie(figsize=(10,10), fontsize=10, autopct="%.1f")
plt.gca().set_aspect('equal')