sea-level-predictor/sea_level_predictor.py

23 lines
389 B
Python
Raw Normal View History

2020-09-29 16:50:39 +02:00
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()