sassoftware / sassoftware/python-swat
crossTab action does not return column names
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.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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