Skip to content

pycensus.census.countries.taiwan.moi.realprice

MOI real-price registry (實價登錄) open data: median sale / pre-sale price and rent per m2 by village/district/county.

Source: https://plvr.land.moi.gov.tw/DownloadOpenData (data.gov.tw dataset 18703). Keyless quarterly zip batches, https://plvr.land.moi.gov.tw/DownloadSeason?season={roc}S{q}&type=zip&fileName=lvr_landcsv.zip (e.g. 113S4), each holding one CSV set per county letter (a=Taipei, f=New Taipei, ...) with _a = sales, _b = pre-sales, _c = rentals. Verified live: 101S3 (2012 Q3, earliest batch) through 115S2 exist. Rows carry district (鄉鎮市區) and an address; there is NO village code column, so the village is parsed from the address (...區XX里...) and matched to MOI RIS's village list (ODRP013 site_id + village -> 11-digit district_code). Only addresses that name a village are usable at village level (coverage is reported in n_village_matched/share); district / county_city levels use every row.

Metrics (residential = main use 住家用, building present, non-zero price; excludes related-party/special-note sales): realPriceSaleM2 median NTD per m2 of building floor area (parking price/area removed when reported) realPricePresaleM2 same for pre-sales (預售屋) realRentM2 median monthly rent, NTD per m2 of floor area realPriceSaleCount / realPricePresaleCount / realRentCount number of records (sum when aggregated) realPriceSalePing = realPriceSaleM2 * 3.3058 (NTD per ping)

download_season(roc, q, data_dir=None, timeout=300)

Download (cached) one quarterly zip; returns None if the batch does not exist.

Parameters:

Name Type Description Default
roc int

ROC year.

required
q int

Quarter (1-4).

required
data_dir Optional[str]

Folder of the raw downloads; None = the pycensus cache.

None
timeout int

Timeout in seconds.

300

Returns:

Type Description
Optional[Path]

The zip path, or None.

load_raw(year, cities=('a', 'f'), data_dir=None)

All usable residential records of calendar year for county letters cities; columns kind, city, district, addr, value.

Parameters:

Name Type Description Default
year int

Calendar year.

required
cities Iterable[str]

County letters of the real-price files.

('a', 'f')
data_dir Optional[str]

Folder of the raw downloads; None = the pycensus cache.

None

Returns:

Type Description
DataFrame

One row per record.

load_realprice(year, level='district', cities=('a', 'f'), data_dir=None, min_obs=1)

Median price/rent per m2 and record counts by level ('village' 11-digit, 'district' 8-digit, 'county_city' 5-digit GEOID).

year is a calendar year (2012 holds only Q3-Q4). Returns DataFrame GEOID + realPrice/realRent columns (NaN median where < min_obs).

Parameters:

Name Type Description Default
year int

Calendar year.

required
level str

"village", "district" or "county_city".

'district'
cities Iterable[str]

County letters.

('a', 'f')
data_dir Optional[str]

Folder of the raw downloads; None = the pycensus cache.

None
min_obs int

Fewest records for a median.

1