Matplotlib Doesn't Show Graph

Here is my code:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
df=pd.read_csv('https://www.sololearn.com/uploads/files/titanic.csv')
plt.scatter(df["Age"], df["Fare"])
plt.xlabel("Age")
plt.ylabel("Fare")

2 comments
Comment actions Permalink

Hello, 

 

Do you get a plot running the code out of PyCharm in terminal?  The code does not produce any output for me as well, please make sure it is correct. 

1
Comment actions Permalink

I forgot to write  "plt.show()" command. Thanks for help.

0

Please sign in to leave a comment.