Skip to content

module

table

A table of typed columns: what every src turns into.

Structs

  • Column

    A column of a table: its key and label, what it holds and is for, and how its values are ordered.

  • Meta

    What the source says about the data as a whole.

  • Table

    Data read from a source: its columns and rows (records), with what the source says about it.

Enums

  • Kind

    What a column holds.

  • Role

    What a column is for, where the source says (official statistics do).

Functions

humanize

pub fn humanize(key: &str) -> String

created_at → "Created at".

is_missing_marker

pub fn is_missing_marker(s: &str, extra: &[String]) -> bool

Whether s marks a missing value as published (empty, .., -, np, n/a, NaN, null…, in any case), or is one of extra.

parse_number

pub fn parse_number(s: &str) -> Option<(f64, Option<String>)>

A number as published: 1,234, $12.50, 45%, and a trailing flag as in 12.3* (ABS: high relative standard error), which comes back too.

Constants

STATUS

pub const STATUS: &str = "_status";

Field on a row holding why its cells have no value: {key: marker}.

Type aliases

Shape

pub type Shape = Vec<Vec<Vec<(f64, f64)>>>;

A map region's shape: polygons, each an outer ring and any holes, in longitude and latitude.