Skip to content

Instantly share code, notes, and snippets.

View dmoliveira's full-sized avatar
:electron:

Diego Marinho dmoliveira

:electron:
View GitHub Profile
import seaborn as sns
from scipy.optimize import curve_fit
# Function for linear fit
def func(x, a, b):
return a + b * x
# Seaborn conveniently provides the data for
# Anscombe's quartet.
df = sns.load_dataset("anscombe")