duescope

v0.1.0
io.github.CloudCorpRecords/duescope Checked 1 day ago Published 15 days ago

Read-only queries over a published website-change dataset: search, rows, stats and provenance.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

dataset_columns Dataset columns and shape

The columns, which of them are numeric, the row count and the provenance banner of the Duesvo dataset. Call this first to learn the schema.

dataset_row Look a row up by an exact key

The rows of the Duesvo dataset where a column equals a value exactly (case-insensitive).

ParameterTypeDescription
column *stringDataset column to use
value *stringValue to match in the column

dataset_compare Compare rows side by side

The rows of the Duesvo dataset whose column is any of the given values, in the order given — for "X vs Y" questions.

ParameterTypeDescription
column *stringDataset column to use
values *arrayValues to compare in the column

dataset_stats Summary statistics for a numeric column

count, min, max, mean, median and sum of a numeric column of the Duesvo dataset (grouping commas and currency are handled; non-numeric rows are excluded and counted).

ParameterTypeDescription
column *stringDataset column to use

dataset_top Rank rows by a numeric column

The highest (or lowest) rows of the Duesvo dataset by a numeric column — "which is the most/least X".

ParameterTypeDescription
column *stringDataset column to use
ascendingbooleantrue for the lowest first; default highest first
limitintegerMaximum number of results to return

dataset_provenance Where this data comes from, and how to cite it

The source, the date it was computed, the licence and the citation for the Duesvo dataset. Read this to attribute a figure correctly.