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")
Please sign in to leave a comment.
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.
I forgot to write "plt.show()" command. Thanks for help.