Popular Data Science Questions - Most Used and Most Viewed - Guided project

In Popular Data Science Questions - Guided project, I am trying to create visualizations for the top tags (in page 7 Most Used and Most Viewed)

Here is my code:
import pandas as pd
import matplotlib.pyplot as plt
top_20_tags.plot(kind=‘barh’,figsize=(12,8), colormap=‘summer’, title=‘Top 20 Tags in DSSE’,grid=False)

Output:
<matplotlib.axes._subplots.AxesSubplot at 0x7fe504eb02e8>

I do not get the graph. I only see the output as above. Why is the graph not visible. Please advise.

1 Like

Hey @brindhaganesan25
You can try to add plt.show to your code and see if it work

import pandas as pd
import matplotlib.pyplot as plt

top_20_tags.plot(kind=‘barh’,figsize=(12,8), colormap=‘summer’, title=‘Top 20 Tags in DSSE’,grid=False)
plt.show()

Thank you for the response @bahmed21 . I added
“%matplotlib inline” and it worked.

1 Like