pydata / pydata/xarray

push inline formatting functions upstream

Open
#4,321 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic-arrays
Dominant language
Python
Stars
4.2k
Forks
1.4k
Avg merge
2d 15h
Merged PRs (30d)
14

Description

#4248 added a _repr_inline_ method duck arrays can use to customize their collapsed variable repr.

We currently also have inline_dask_repr and inline_sparse_repr which remove redundant information like dtype and shape from dask and sparse arrays.

In order to reduce the complexity of inline_variable_array_repr, we could try to push these functions upstream.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the issue #4248 change and the inline_variable_array_repr, inline_dask_repr, and inline_sparse_repr entry points. Review the duck-array _repr_inline_ documentation and determine how the redundant-information removal could be moved upstream. Done means the upstream interfaces provide the needed behavior and inline_variable_array_repr no longer carries that complexity.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
developer-experience
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.