sassoftware / sassoftware/python-swat

crossTab action does not return column names

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

Nobody has claimed this yet.

Dominant language
Python
Stars
159
Forks
65
PR merge metrics
No merged PRs in 30d

Description

When using the crossTab action with the col= parameter, it does not return the column names. It adds default column names to the SASDataFrame. You need to add an extra step and use the apply_labels method to get the correct column names. If I use the crossTab action in CASL (PROC CAS), the column names are returned by default. Seems like the action should work the same in each.

crosstab action Python

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 by reproducing the Python SWAT crossTab action with the col= parameter and compare its result with the CASL behavior described in the issue. Trace how the action result becomes a SASDataFrame and how apply_labels is currently used; done means the returned dataframe has the correct column names without that extra step.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.