I am using following code to plot 2 different plot(count of visit) from 2 different columns of a CSV file. But the 2nd graph is displaying only after I close the 1st graph. Is it possible to display 2 plots together?
import matplotlib.pyplot as plt
import pandas
import csv
import pandas as pd
import matplotlib
output2 =pandas.read_csv('Place.csv')
place_plot= output2.Place.value_counts().plot(kind="bar",x=output2["Place"],title="Count",legend=False)
plt.show()
capital_plot= output2.Capital.value_counts().plot(kind="bar",x=output2["Capital"],title="Count",legend=False)
plt.show()
Place.csv file has following data:
Name Place Capital
A India Delhi
B USA Wash
C India Delhi
D USA Wash
E China Bej
F UK Lon
G Canada un
H China Bej
I UK Lon
J UK Lon
