Skip to content

Allow for in-process rich arrow output #14

@raulcd

Description

@raulcd

It would be nice to get rich output of table/buffers and others using the pycapsule protocol, something like:

import pyarrow as pa
import datanomy

table = pa.table({'x': [1, 2, 3], 'y': ['a', 'b', 'c']})

# Rich output 
datanomy.inspect(table)

with

  Output:
  ╭─────────────────────────────────────╮
  │ Arrow Table                         │
  │ Rows: 3 │ Columns: 2 │ Size: 48 B   │
  ├─────────────────────────────────────┤
  │ Schema:                             │
  │   x: int64                          │
  │   y: string                         │
  ├─────────────────────────────────────┤
  │ Data Preview:                       │
  │   x  │ y                            │
  │   1  │ a                            │
  │   2  │ b                            │
  │   3  │ c                            │
  ╰─────────────────────────────────────╯

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions