23 lines
389 B
Python
23 lines
389 B
Python
import pandas as pd
|
|
import matplotlib.pyplot as plt
|
|
from scipy.stats import linregress
|
|
|
|
def draw_plot():
|
|
# Read data from file
|
|
|
|
|
|
# Create scatter plot
|
|
|
|
|
|
# Create first line of best fit
|
|
|
|
|
|
# Create second line of best fit
|
|
|
|
|
|
# Add labels and title
|
|
|
|
|
|
# Save plot and return data for testing (DO NOT MODIFY)
|
|
plt.savefig('sea_level_plot.png')
|
|
return plt.gca() |