Skip to content
Skills Library
Data & analytics · Analysis

vaex

/vaex

Expert Vaex out-of-core data analytics assistance covering lazy evaluation, memory mapping (mmap), and billion-row DataFrame visualizations. Use when analyzing huge tabular datasets without loading them into RAM.

Licence
MIT
Last repository change
01.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 01.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Expert Vaex out-of-core data analytics assistance covering lazy evaluation, memory mapping (mmap), and billion-row DataFrame visualizations. Use when analyzing huge tabular datasets without loading them into RAM.

Original author description

Expert Vaex out-of-core data analytics assistance covering lazy evaluation, memory mapping (mmap), and billion-row DataFrame visualizations. Use when analyzing huge tabular datasets without loading them into RAM.

How it works

  1. When to Use
  2. Quick Start
  3. Core Concepts
  4. Common Patterns
  5. Best Practices
  6. Troubleshooting
  7. References
Original SKILL.md headings · 123 lines, 562 words
SKILL.md preview
---
name: vaex
description: Expert Vaex out-of-core data analytics assistance covering lazy evaluation, memory mapping (mmap), and billion-row DataFrame visualizations. Use when analyzing huge tabular datasets without loading them into RAM.
---

# Vaex

Vaex is a hidden gem. It uses **Memory Mapping** to open 100GB files instantly on a laptop and visualize them.

## When to Use

- **Billion-Row Tabular Analytics on a Single Laptop**: Interactive exploration and statistics on 100M-1B+ rows without cloud clusters.
- **Zero-Copy Memory-Mapped Files (HDF5 / Arrow)**: Opening 100GB+ files in milliseconds without loading data into RAM.
- **Virtual Columns & Lazy Evaluation**: Computing derived features and statistical transforms without allocating additional memory.
- **Ultra-Fast 2D Heatmaps & Visualizations**: Generating histograms, binned heatmaps, and scatter visualizations instantly.

## Quick Start

```python
import vaex

# Instantly memory-map 100M+ row HDF5/Arrow dataset without loading into RAM
df = vaex.open('billion_records.hdf5')

# Instant computation across billions of rows
mean_val = df.mean(df.amount)
print("Dataset row count:", len(df))
print("Mean amount:", mean_val)
```

## Core Concepts

### Opening & Querying Billion-Row Datasets Lazily

Memory-mapping huge datasets without RAM exhaustion:

```python
import vaex

# Open 100GB+ dataset instantaneously (zero memory allocation)
df = vaex.open('s3://massive-analytics/yellow_tripdata.arrow')

print(f"Total rows in dataset: {len(df):,}")

# Virtual column: computed lazily on-the-fly without memory consumption
df['trip_duration_min'] = (df.dropoff_datetime - df.pickup_datetime) / 60.0
df['speed_mph'] = df.trip_distance / (df.trip_duration_min / 60.0)

# Filter rows lazily
filtered_df = df[(df.trip_distance > 0) & (df.trip_distance < 100) & (df.speed_mph < 80)]

# Compute summary statistics across 1 billion rows in sub-seconds
mean_speed = filtered_df.speed_mph.mean()
total_passengers = filtered_df.passenger_count.sum()

print(f"Mean Speed: {mean_speed:.2f} mph, Total Passengers: {total_passengers:,}")
```

### High-Speed Binned Aggregations & Heatmaps

Computing 2D binned histograms across millions of points:

```python
import matplotlib.pyplot as plt

# Compute 2D binned aggregation directly in Vaex
heatmap_counts = filtered_df.count(binby=[filtered_df.pickup_longitude, filtered_df.pickup_latitude], shape=256)

plt.figure(figsize=(8, 8))
plt.imshow(heatmap_counts, cmap='hot', origin='lower')
plt.title("Pickup Density Heatmap (Computed in 150ms)")
plt.savefig("pickup_density.png")
```

### Exporting and Converting Large Datasets

Converting CSV files to fast memory-mapped Apache Arrow format:

```python
# Convert giant CSV to chunked memory-mapped Arrow
vaex.from_csv('giant_raw_data.csv', convert='giant_data.arrow', chunk_size=5_000_000)
```

## Common Patterns

### Virtual Columns and Fast Heatmap Binning

**Problem**: Creating derived columns duplicates memory when working with 100GB+ datasets.

**Solution**:
Use Vaex zero-memory virtual columns:

```python
# Virtual column: stored as an expression formula, zero memory allocated
df['tax'] = df.amount * 0.2

# Fast 2D histogram binning across 100 million points in under 1 second
heatmap = df.count(binby=[df.x, df.y], shape=128)
```

## Best Practices

**Do**:

- Convert raw CSV or JSON files to Apache Arrow (`.arrow`) or HDF5 format to enable memory-mapping.
- Leverage virtual columns (`df['col'] = ...`) rather than materializing copies to minimize RAM usage.
- Use Vaex binned statistics (`df.count(binby=...)`) for large-scale data visualization rather than raw scatter plots.
- Keep calculations within Vaex expressions to maintain multi-threaded C++ execution speeds.

**Don't**:

- Convert massive Vaex DataFrames to Pandas (`df.to_pandas_df()`) if the dataset exceeds system RAM.
- Iterate over rows with Python loops; use Vaex aggregation expressions.
- Write intermediate datasets to uncompressed CSV; use Arrow or Parquet.

## Troubleshooting

| Error                                               | Cause                                                            | Solution                                                             |
| :-------------------------------------------------- | :--------------------------------------------------------------- | :------------------------------------------------------------------- |
| `FileNotFoundError / Unable to open file`           | Target file format not HDF5, Arrow, or Parquet.                  | Convert CSV to HDF5 once: `vaex.from_csv('file.csv', convert=True)`. |
| `AttributeError: DataFrame has no attribute 'iloc'` | Vaex is not pandas; row-based integer indexing is not supported. | Use boolean filtering `df[df.col > 0]` instead of iloc.              |
| `Memory spikes during export`                       | Exporting to uncompressed format without chunking.               | Export in chunks or write directly to Parquet/Arrow format.          |

## References

- [Vaex Documentation](https://vaex.io/docs/index.html)

Versions

RepositoryScoreLicence
This page · G1Joshi/Agent-Skills100MIT
K-Dense-AI/scientific-agent-skills100MIT
lamm-mit/scienceclaw100Apache-2.0
bestagentkits/agency-skills100MIT
davila7/claude-code-templates95MIT
sandbaseai/sandbase-skills90Apache-2.0

Database snapshot: 13.11.2026 · package version 8d8172334cf3 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95vaex-dataframes
    Out-of-core DataFrame for billion-row data via lazy evaluation and memory-mapped files. Use when data exceeds RAM (10 GB–TB) for fast aggregation, filtering, virtual columns, and visualization without loading. Supports HDF5, Arrow, Parquet, CSV with cloud (S3, GCS, Azure).…
  • 100alterlab-vaex
    Out-of-core tabular analytics with Vaex — memory-mapped HDF5/Arrow/Parquet via vaex.open, lazy virtual columns, delayed single-pass aggregations on billion-row tables, binned histograms/heatmaps, and vaex.ml transformers on one machine. Vaex is in minimal-maintenance mode…
  • 100polars
    Fast in-memory DataFrame library for datasets that fit in RAM. Use when pandas is too slow but data still fits in memory. Lazy evaluation, parallel execution, Apache Arrow backend. Best for 1-100GB datasets, ETL pipelines, faster pandas replacement. For larger-than-RAM data use dask or vaex.
  • 100polars
    Fast in-memory DataFrame library for datasets that fit in RAM. Use when pandas is too slow but data still fits in memory. Lazy evaluation, parallel execution, Apache Arrow backend. Best for 1-100GB datasets, ETL pipelines, faster pandas replacement. For larger-than-RAM data use dask or vaex.
  • 100polars
    Fast in-memory DataFrame library for datasets that fit in RAM. Use when pandas is too slow but data still fits in memory. Lazy evaluation, parallel execution, Apache Arrow backend. Best for 1-100GB datasets, ETL pipelines, faster pandas replacement. For larger-than-RAM data use dask or vaex.
  • 100polars
    Fast in-memory DataFrame library for datasets that fit in RAM. Use when pandas is too slow but data still fits in memory. Lazy evaluation, parallel execution, Apache Arrow backend. Best for 1-100GB datasets, ETL pipelines, faster pandas replacement. For larger-than-RAM data use dask or vaex.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.