Skip to main content

datagrid

Create a datagrid of mixed-media items, and log to comet.com.

Installation

pip install datagrid

Example

The following demo program will log 100 random images, scores, and categories:

from comet_ml import start
from datagrid import DataGrid, Image

import random
from PIL import Image as PImage
import requests

experiment = start(project_name="datagrids")

categories = ["sunset", "landscape", "water", "tree", "city"]

dg = DataGrid(
    columns=["Image", "Score", "Category"],
    name="Demo"
)
url = "https://picsum.photos/200/300"
for i in range(100):
    im = PImage.open(requests.get(url, stream=True).raw)
    category = random.choice(categories)
    score = random.random()
    image = Image(im, metadata={"category": category, "score": score})
    dg.append([image, score, category])

dg.log(experiment)
experiment.end()

Visualization

image

Log into comet.com to see results.

Metadata

Release files for datagrid 1.0.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datagrid 1.0.15
File Size Uploaded
datagrid-1.0.15.tar.gz 90.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datagrid 1.0.15
File Interpreter ABI Platform
datagrid-1.0.15-py3-none-any.whl Python 3 none any Details

Total release size: 191.7 kB

Release files / datagrid-1.0.15.tar.gz

Download URL datagrid-1.0.15.tar.gz
Size 90.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e97c93702584b4022d984f3cf2e929355b278d0e4602bdaa4d081ee4e891f0ce
BLAKE2b-256 checksum
How to use checksums
1fa8303af7ea8ac45698269833f7a9446edf1b3f0e47f926095e3a2ce48e94d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release files / datagrid-1.0.15-py3-none-any.whl

Download URL datagrid-1.0.15-py3-none-any.whl
Size 101.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3d4f86d7c5a787c9721d08abf3a28cfafb01ec8c90d806e2d3f98cde7628c41
BLAKE2b-256 checksum
How to use checksums
028dfae25f90558ad80a091b0097b321a0d2a2b0bcf9ad965f48f710d2357bb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.13

Release history Release notifications | RSS feed

This release

1.0.15 This release

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.5

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page