Insert a Group of data - feature request

Open
#208 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

No files, tests, or entry points are named. Start by examining the library's public API and its XML handling for calculated fields or categorical bins. Done means users can create a grouped column with multiple named bins and values without editing workbook XML manually.

Written by the indexing model from the issue text.

Description

enhancement question

I've got a strong use-case for the ability to insert a group of a particular column of my data. There does not appear to be a way to do this currently other than hacking the XML. This would enable an easy way to interactively redraw Sales Territory borders, but starting with the current territories rather than a blank slate.

Something like this:

  <column datatype="string" name="[Cust Group by Territory]" role="dimension" type="nominal">
    <calculation class="categorical-bin" column="[Customer ID]" default="&quot;Other&quot;" new-bin="true">
      <bin default-name="false" value="&quot;NorthNYC&quot;">
        <value>"34942825"</value>
        <value>"93347600"</value>
        </bin>
      <bin default-name="false" value="&quot;SouthNYC&quot;">
        <value>"34944166"</value>
        <value>"34941834"</value>
        <value>"52386700"</value>
        </bin>
      </calculation>
    </column>
Dominant language
Python
Stars
363
Forks
183
PR merge metrics
No merged PRs in 30d

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.

More from tableau/document-api-python

All issues in tableau/document-api-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.