data-inspector

Description

Evaluate and visualize DataFrame directly in the same Inspector window.

Details

Source
GitHub
Dialect
pharo (40% confidence)
License
MIT
Stars
14
Forks
4
Created
Feb. 17, 2021
Updated
Sept. 29, 2025
Topics
data-frame data-inspector pharo pharo-smalltalk

Categories

UI / Graphics IDE / Dev Tools

README excerpt

[![Build status](https://github.com/pharo-ai/data-inspector/workflows/CI/badge.svg)](https://github.com/pharo-ai/data-inspector/actions/workflows/CI.yml)
[![Coverage Status](https://coveralls.io/repos/github/pharo-ai/data-inspector/badge.svg?branch=master)](https://coveralls.io/github/pharo-ai/data-inspector?branch=master)
[![Pharo version](https://img.shields.io/badge/Pharo-10-%23aac9ff.svg)](https://pharo.org/download)
[![Pharo version](https://img.shields.io/badge/Pharo-11-%23aac9ff.svg)](https://pharo.org/download)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/pharo-ai/data-inspector/master/LICENSE)

# Description

A Pharo inspector extension to operate and view DataFrame multiple information in a same inspector view. Currently it displays:
- General informations about the dataframe
- Histograms about all numerical columns of the dataframe
- A scatter matrix of the DataFrame

A configurable limit is set by default to quickly visualize a DataFrame when we are in the inspector. To change the limit, for example to 50000, you can evaluate:

```smalltalk
AISpDataFrameInspector maxRows: 50000
```

# Installation

```smalltalk
EpMonitor disableDuring: [ 
    Metacello new
        baseline: 'AIDataFrameInspector';
        repository: 'github://pharo-ai/data-inspector/src';
	onConflictUseIncoming;
        load ]
```

# If you want to depend on it

```smalltalk
spec 
   baseline: 'AIDataFrameInspector' 
   with: [ spec repository: 'github://pharo-ai/data-inspector/src' ].
```

# Usage

Just inspect any DataFrame and select the palette with "Data Inspector":

```smalltalk
EpMonitor disableDuring: [ 
	Metacello new
		baseline: 'AIDatasets';
		repository: 'github://pharo-ai/datasets';
		load ].

AIDatasets loadIris inspect.
```

![](resources/imgs/datainspector.png)

![](resources/imgs/histograms.png)

![](resources/imgs/scattermatrix.png)

It is also possible to visualize the historigrams of a DataFrame or a DataSeries like this

```st
iris := AIDatasets loadIris.

iris histograms.
(iris column: #'petal length (cm)') histogram.
```

You can specify the number of intervals to display like this:

```st
iris histogramsBins: 50.
(iris column: #'petal length (cm)') histogramBins: 50.
```

The scatter matrix can be opened like this:

```st
iris scatterMatrix
```
← Back to results