A new build is a property newly built at the time of purchase. In property transaction data, it distinguishes recently constructed homes from existing properties. section 10.4.1
The distinction appears as coded categorical data: Y indicates a new build and N indicates an existing property. Recoding these values makes charts and analysis easier to interpret. section 10.4.1
Recoding transaction data
Map the old_new column from Y/N codes to New build/Existing property labels, then count each category to check whether most transactions involve already-built homes. section 10.4.1
price_paid["old_new"] = (
price_paid["old_new"]
.map(
{
"Y": "New build",
"N": "Existing property"
}
)
)
price_paid["old_new"].value_counts()
Inspect the pandas mapping that converts Y and N into readable property-status labels and counts the resulting categories. section 10.4.1
