Click here to Skip to main content
15,798,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
im practicing pandas atm and since im new to this im stuck with this situation. i have a code here but my problem it didn't plot dictionary is there a way to plot a dictionary or should i change this into a list instead?
import pandas as pd
import matplotlib.pyplot as plt
n=int(input("How many times do you want to input: "))
for i in range(n):
    ad = input("Enter admission no: ")
    nm=input("Enter name: ")
b={'Admno': admno,'Name':name}
b.plot(x='admno', y='name') 

What I have tried:

ive tried watching yt videos and searching but still i dont get the exact solution that i needed so hope someone could explain it to me.
Updated 6-Dec-22 1:26am

1 solution

Don't waste time on Youtube, make use of the official documentation at Matplotlib — Visualization with Python[^]. It even contains useful tutorials.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900