-1
Suppose I have two simple Python lists and create a scatter chart:
x = [548, 677, 987, 2, 29, 1114, 521, 999]
y = [96, 775, 258, 369, 410, 99, 5, 1117]
import matplotlib.pyplot as plt
plt.scatter(x, y)
How can I create a trend line within that same graph?