Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/pharo-ai/data-inspector
- Owner: pharo-ai
- License: mit
- Created: 2021-02-17T01:04:19.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-28T18:39:19.000Z (about 1 year ago)
- Last Synced: 2024-09-26T21:40:58.507Z (4 months ago)
- Topics: data-frame, data-inspector, pharo, pharo-smalltalk
- Language: Smalltalk
- Homepage:
- Size: 537 KB
- Stars: 14
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 DataFrameA 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
```