Step 1 of 4
Create the table
Inputs must be things known before the work starts, or the model is useless.
import pandas as pd
import numpy as np, pandas as pd
r = np.random.default_rng(1)
df = pd.DataFrame({"size": r.integers(300, 3000, 400), "age": r.integers(1, 50, 400), "premium": r.integers(0, 2, 400)})
df["cost"] = df["size"] * (110 + 70 * df["premium"]) + r.normal(0, 8000, 400)
print(df.head())
You are done whenEvery input column is known before installation.
