import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(0)
df_new = pd.DataFrame(np.random.randn(5,3), columns=list('ABC'))
df_new.plot(kind='bar')
I have no idea about weather I have to use plt.show()
or not. Because if there is only df_new.plot(kind='bar')
,it will shows the plot. If I add plot.show()
,it shows also. What is the difference between them? I use Jupyter. Thanks in advance.