Stochastic Solutions

Tools and Resources

The TDDA Library and Command-Line Tools

We also maintain an open-source Python library that includes powerful command-line tools. You can get this with

python -m pip install tdda

and read the documentation here. More detailed and alternative installation instructions are available here.

The tdda library and tools have six major components:

A six-block diagram. The top line has three geared machines. Top left (blue) is labelled ‘Discover. Verify. Detect‘ and ‘Verifying Data with Constraints.
The top middle (green) is labelled 'Rexpy’ and ‘Generating Regular Expressions from Examples’.  
The top right (red) is labelled ‘Reference tests. Gentest’ and 'Testing Data Processes.  
Bottom left (orange) has a spiral and the labels ‘assertStringCorrect’, ‘Reference Testing API’ and ‘Semantic Regression Tests’.  
The bottom middle (black background) shows interleaved columns of two data frames, some contrasting different red and blue values. The labels are ‘tdda diff’ and ‘Semantic Regression Tests’.  
The bottom right (teal) shows JSON in outlin and is labelled ‘tdda.serial’ and ‘Metadata for Flat (CSV) Files.’

The TDDA Book

Cover of book: Test-Driven Data Analysis, by Nicholas J. Radcliffe. Published by Chapman and Hall/CRC Press (Taylor & Francis Group), part of the Data Science Series. The cover is black with mostly white text and a white graphic. The graphic is a 3-row by 4-column grid of squares, each containing dots laid out on a regular 32x32 grid. The top-left square is full (1024 dots) and working along each row in turn, the number of dots roughly halves each time, apparently at random. The last row's boxes have six, two, two, and one dot.

The book Test-Driven Data Analysis, by Nicholas J. Radcliffe, is available from all good booksellers and all sellers of good books and is being serialized online. In addition to the book’s contents, you can find online the 22 TDDA checklists, all the examples from the book, the glossary, example data profiles and tests for almost all the books examples.

The TDDA Blog

The TDDA blog has been running for about decade, and continues to be updated with new developments.

Company number SC329851. Registered office: 16 Summerside Street, Edinburgh, EH6 4NU.
Copyright © Stochastic Solutions Limited 2007–2026.