Programming, Artificial Intelligence, Technology, Python, Data Science.
column name you should change it according to your data value_counts = dt[column_name].value_counts() # Plotting the pie chart plt.pie(value_counts, labels = value_counts.index, autopct = '%1.1f%%', startangle = 140) plt.title(f'Pie Chart') plt.axis('equal') # Equal aspect ratio ensures that the