Following is the code to get display a Bar chart using Python (3.6). Once I execute the following program the chart disappears after 1 sec. Can anyone please help with this.
import pandas
import csv
import pandas as pd
import matplotlib
df2 =pandas.read_csv('Place.csv')
place_plot= df2.Place.value_counts().plot(kind="bar",x=df2["Place"],title="Count",legend=False)
fig = place_plot.get_figure() 
fig.show()
The Place.csv file has the following data,
Name    Place
A   India
B   USA
C   India
D   USA
E   China
F   UK
G   Canada
H   China
I   UK
J   UK