Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pharo-ai/data-inspector

Evaluate and visualize DataFrame directly in the same Inspector window.
https://github.com/pharo-ai/data-inspector

data-frame data-inspector pharo pharo-smalltalk

Last synced: 4 months ago
JSON representation

Evaluate and visualize DataFrame directly in the same Inspector window.

Awesome Lists containing this project

README

        

[![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
```