Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Tools for processing tabular datasets for PyTorch

Project description Documentation Status


Torchtable is a library for handling tabular datasets in PyTorch. It is heavily inspired by torchtext and uses a similar API but without some of the limitations (e.g. only one field per column). Torchtable aims to be simple to use and easily extensible. It provides sensible defaults while allowing the user to define their own custom pipelines, putting all of this behind an intuitive interface.


Install via pip.

$ pip install torchtable


Documentation is a work in progress, but the current docs can be read here. In addition, you can read the notebooks in the examples directory or dev_nb directory to learn more.


Torchtable uses a declarative API similar to torchtext. Here is an example of how you might handle an imaginary dataset where you are supposed to predict the price of some product.

>>> train = TabularDataset.from_csv('data/train.csv',
...    fields={'seller_id': CategoricalField(min_freq=3),
...            'timestamp': [DayofWeekField(), HourField()],
...            'price': NumericalField(fill_missing="median", is_target=True)
...    })

See the examples directory for more examples.


  • Add more models
  • Implement default field selection
  • Implement text field/operations
  • Implement swap noise
  • Implement input/output validation

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
torchtable-0.1.0-py3-none-any.whl (24.7 kB) Copy SHA256 hash SHA256 Wheel py3
torchtable-0.1.0.tar.gz (18.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page