Skip to content

catching calls to unsupported aggregation function in R#63

Open
mahaalbashir wants to merge 3 commits into
mainfrom
48-behaviour-change-catch-calls-to-unsupported-crosstabpivot_table-aggregation-function-in-r-not-python
Open

catching calls to unsupported aggregation function in R#63
mahaalbashir wants to merge 3 commits into
mainfrom
48-behaviour-change-catch-calls-to-unsupported-crosstabpivot_table-aggregation-function-in-r-not-python

Conversation

@mahaalbashir

@mahaalbashir mahaalbashir commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

What's been done:

  • Catching the Python error message and replacing it with an R error message.

  • I noticed that acro_crosstab doesn't work when the values parameter is provided and gives this error: "If you pass an aggregation function to crosstab, you must also specify a single values column to aggregate over." This happens because R vectors are automatically translated into Python lists via reticulate, which triggers that error!`

  • Now the values are being translated to a NumPy array before being passed to crosstab.

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3bc9c73) to head (c0be4de).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #63   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          161       198   +37     
=========================================
+ Hits           161       198   +37     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mahaalbashir
mahaalbashir requested a review from jim-smith July 23, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Behaviour Change] catch calls to unsupported crosstab/pivot_table aggregation function in R not python

1 participant