h2oai/datatable

A Python package for manipulating 2-dimensional tabular data structures

What it solves

Datatable addresses the performance bottlenecks encountered when processing massive datasets—up to 100GB—on a single machine. It is designed to handle large-scale data manipulation tasks that are often too slow or memory-intensive for standard tools, ensuring machine learning workflows remain efficient.

How it works

The library uses a column-oriented storage format implemented in native C, which allows it to process data at high speeds. It supports memory-mapping, meaning it can work with datasets stored on disk without needing to load the entire file into RAM. It also utilizes multi-threading to distribute work across all available CPU cores and employs "rowindex" views to perform operations like filtering and sorting without creating unnecessary copies of the data.

Who it’s for

It is built for data scientists and engineers working with large volumes of tabular data who need high-performance alternatives to existing frameworks like pandas. It is particularly useful for those who need to generate features for machine learning models on a single-node system.

Highlights

  • High-speed processing for datasets up to 100GB.
  • Native C implementation for all data types, including strings.
  • Memory-mapped file support for out-of-memory data handling.
  • Multi-threaded execution to maximize CPU utilization.
  • Expressive query syntax inspired by R's data.table.
  • Efficient interoperability with pandas, numpy, and pyarrow.

Related

  • Project
  • Project
  • Project
  • Project