text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import numpy as np

from ast import increment_lineno
import numpy as np
import os
import pandas as pd
import matplotlib.pyplot as plt
dataset = np.loadtxt('../input/ex1data1/ex1data1.txt', delimiter=',')
X = dataset[:, 0]
Y = dataset[:, 1]
m = Y.size

X = dataset[:, 0]
Y = dataset[:, 1]
plt.scatter(X, Y, marker='x', color='red')
plt.ylabel('profit in $10,000s')
plt.xlabel('population of city in 10,000s')