importpandasaspdimportmatplotlib.pyplotasplotdf=pd.read_csv("/home/kodingwindow/kw.csv")x=df['account_no']y=df['amount']plot.bar(x,y,label="Bank Holders")plot.xlabel("Account Numbers")plot.ylabel("Current Amount")plot.title("New Bank Holders")plot.show()
Output
kodingwindow@kw:~$ python3 kw.py
Comments and Reactions
Advertisement
Thank You
Dear User, Thank you for visitng KodingWindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.