mileage = rng.integers(
low=5_000,
high=220_001,
size=n_samples,
)
age = rng.integers(
low=0,
high=16,
size=n_samples,
)
engine_size = rng.choice(
[1.3, 1.6, 2.0, 2.5],
size=n_samples,
)
brand = rng.choice(
brand_names,
size=n_samples,
p=[0.30, 0.30, 0.25, 0.15],
)
automatic = rng.choice(
["yes", "no"],
size=n_samples,
p=[0.65, 0.35],
)
132 ·