I'm trying to plot a histogram with two columns, credit and installments. the credit can only be 1 or 0 (approved ,not approved) while installments is the amount of money they pay monthly.
df=pn.read_csv(loc)
credit=df['credit.policy']
ins=df['installment']
_,b,_=plt.hist(ins,bins='auto',label='credit=1',alpha=0.5,color='blue')
plt.hist(credit,bins=b,label='credit=0',alpha=0.5,color='red')
plt.legend(loc='best')
plt.ylim([0,700])
plt.show()

the image I need to produced is something like this

[![after new code][3]][3]
