From the Titanic Dataset from Kaggle, I'm trying to create a boxplot using the package matplotlib.pyplot using the age parameter as my basis. So I used the following code:
plt.boxplot(dataframe.age)
plt.show()
Only to get a blank graph:
Is there anything I'm doing wrong? Please let me know.
A lot of people on the internet use the seaborn package to do this. I accept using seaborn is an easier method, but currently, I am learning specifically about matplotlib.pyplot (I'm still a newbie to this), so I would need my code to be accordingly.
Thanks for understanding and for your help in advance!


seabornis just a high-level API formatplotlib