Crosstabbing CSV Data TablesΒΆ

xtab.py is a Python module and command-line program that rearranges data in a CSV file from a normalized format to a crosstabulated format. Typical input and output formats are illustrated in the examples.

You can use xtab as a program or a library to:

  • Rearrange data exported from a database to better suit its subsequent usage in statistical, modeling, graphics, or other software, or for easier browsing.
  • Convert a single file of data to a SQLite database.
  • Check for multiple rows of data in a text file with the same key values.