Data quality and cleansing policy
How Queria prepares the original data before publishing it
Queria standardizes the encodings, column names, types and codes of open data before publishing it. This page explains what is standardized and how.
Why the data needs preparing
Each organization publishes open data with its own encodings, column names and ways of writing units. The same “municipality code” can have a different number of digits or a different type, and numeric columns can contain annotation text. As published, two datasets usually need their formats standardized before you can JOIN them.
Queria does this work once, so users don’t have to write the same preprocessing every time.
The preprocessing Queria does
- Formats: standardize encodings and file formats, and publish the data as Parquet
- Column names and types: write column names consistently, and store numbers and dates as numeric and date types
- Values: remove Japanese annotations and units from numeric columns. Missing or conflicting values are handled by set rules
- Codes: normalize the digits and types of area codes and similar keys so that datasets can be joined with
JOIN - Descriptions: describe each table and column, including its meaning, units and how it was aggregated
All the preprocessing code is public. Open it from “Source code” on a table page.
The original numbers
Preprocessing only changes the shape of the data. It never rewrites the original numbers. You can check what was changed and how in the public code. To check whether the original data is correct, follow “Original data” on the table page to the primary information.
Read next
- Attribution and licensing: the conditions for using the data
- How it works: where your SQL and results are handled
- Concept: why Queria does the preprocessing
