import pandas as pd
my_dict={
'NAME':['Ravi','Raju','Alex',
'Ron','Geek','Kim'],
'MARK':[20,30,40,30,30,30]
}
df = pd.DataFrame(data=my_dict)
df.plot.barh(title="rot=180",x='NAME',
y='MARK',figsize=(5,3),rot=45)
Author
🎥 Join me live on YouTubePassionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.