I’m using this dataset and I want to plot a pie chart using matplotlib to show the percentage of males and females who have their loans approved i.e, Loan_Status == Y
.
plot.pie()
only takes x
and labels for the data, so, I’m not able to figure how I should involve the gender column and where I should filter the Y
s from the Loan_Status
column.
1