I'm trying to recreate a graph from a professor's example. This is what he did:
axes = sns.regplot(x=miami.Date, y=miami.Temperature)
from matplotlib import pyplot as plt
plt.title('Regression analysis of Miami Temps')
but when I do it the graph looks weird, it comes out like this:
Graph from matplotlib and seaborn
Why are the data points like this and how do I make it so that it looks normal (so they aren't only on the far left and right)?
This is the desired enter image description here