When making a plot, I used both Jupyter Notebook and Pycharm with the same set of code and packages. The code is:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt # as in Pycharm
import matplotlib as plt # as in Jupyterdf = pd.read_csv("/home/kunal/Downloads/Loan_Prediction/train.csv")
df['ApplicantIncome'].hist(bins=50)
plt.show() #this only in Pycharm not in Jupyter.
In Pycharm, the code works well. But in Jupyter Notebook, it has error:
I wish someone can help me solve this problem