Skip to content

Instantly share code, notes, and snippets.

@Chiraagkv
Created February 25, 2022 06:22
Show Gist options
  • Save Chiraagkv/8bdf37d91f840618253de37e6bedc8e2 to your computer and use it in GitHub Desktop.
Save Chiraagkv/8bdf37d91f840618253de37e6bedc8e2 to your computer and use it in GitHub Desktop.
np.random.seed(42)
area = np.array([round(i, 2) for i in np.abs(np.random.random(size=(1000, ))) * 2000])
age = np.array([round(i, 2) for i in np.abs(np.random.random(size=(1000, ))) * 20])
price = area * 100 + age * 30
data = pd.DataFrame({"Area": area, "Age": age, "Price": price})
data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment