Repository: Data-Simply/pyretailscience
Pull request #165: feat: add new columns to options to support upcoming functionality
Author: login: mvanwyk
Labels: name: Review effort 2/5
Created: 2025-03-30T14:26:23Z | Merged: 2025-03-31T07:48:07Z

### **PR Type**
Enhancement, Tests


___

### **Description**
- Added new columns (`unit_cost`, `promo_unit_spend`, `promo_unit_quantity`) to options for enhanced functionality.

- Updated aggregation and calculated columns to include the new fields.

- Enhanced tests to validate the new columns and their functionality.

- Updated configuration files to reflect the new column additions.


___



### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
  <td>
    <details>
      <summary><strong>options.py</strong><dd><code>Add new cost and promotion-related columns to options</code>&nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

pyretailscience/options.py

<li>Added new columns (<code>unit_cost</code>, <code>promo_unit_spend</code>, <code>promo_unit_quantity</code>) <br>to the options dictionary.<br> <li> Updated aggregation and calculated columns to include the new fields.<br> <li> Added detailed descriptions for the new columns.<br> <li> Introduced new attributes for cost and promotion-related metrics.


</details>


  </td>
  <td><a href="https://github.com/Data-Simply/pyretailscience/pull/165/files#diff-d2ba5d1fff6049c395bba1ea7be4464e194f2a0b352b05980c0bdc9560dc48d1">+50/-1</a>&nbsp; &nbsp; </td>

</tr>

<tr>
  <td>
    <details>
      <summary><strong>options_template.toml</strong><dd><code>Update options template with new columns</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

options_template.toml

<li>Added new columns (<code>unit_cost</code>, <code>promo_unit_spend</code>, <code>promo_unit_quantity</code>) <br>to the template.<br> <li> Updated aggregation fields to include the new columns.


</details>


  </td>
  <td><a href="https://github.com/Data-Simply/pyretailscience/pull/165/files#diff-181fbc5dd05486af4a0f8c0ebe5b0b39bb9635b0b4066fcc9171e7fc111a2fc9">+6/-0</a>&nbsp; &nbsp; &nbsp; </td>

</tr>
</table></td></tr><tr><td><strong>Tests</strong></td><td><table>
<tr>
  <td>
    <details>
      <summary><strong>test_options.py</strong><dd><code>Enhance tests to validate new columns</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

tests/test_options.py

<li>Updated test to validate new columns in options.<br> <li> Added assertions for <code>unit_cost</code>, <code>promo_unit_spend</code>, and <br><code>promo_unit_quantity</code>.<br> <li> Renamed test for better clarity.


</details>


  </td>
  <td><a href="https://github.com/Data-Simply/pyretailscience/pull/165/files#diff-1d9e1495e2f95c2cd4ffb71e449bb5a460dd96297c5e1a7bfe428feee6fc0507">+8/-2</a>&nbsp; &nbsp; &nbsp; </td>

</tr>

<tr>
  <td>
    <details>
      <summary><strong>test_options.toml</strong><dd><code>Update test TOML file with new columns</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

tests/toml_files/test_options.toml

<li>Added new columns (<code>unit_cost</code>, <code>promo_unit_spend</code>, <code>promo_unit_quantity</code>) <br>to the test TOML file.<br> <li> Updated aggregation fields to include the new columns.


</details>


  </td>
  <td><a href="https://github.com/Data-Simply/pyretailscience/pull/165/files#diff-d44085784de4bce7246dbd97fa67b3d571f14307b2e5d3fd347653208a6eac34">+6/-0</a>&nbsp; &nbsp; &nbsp; </td>

</tr>
</table></td></tr><tr><td><strong>Configuration changes</strong></td><td><table>
<tr>
  <td>
    <details>
      <summary><strong>.pre-commit-config.yaml</strong><dd><code>Update pre-commit configuration to remove duplicates</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

.pre-commit-config.yaml

<li>Removed duplicate entry for <code>conventional-pre-commit</code> hook.<br> <li> Adjusted configuration for pre-commit hooks.


</details>


  </td>
  <td><a href="https://github.com/Data-Simply/pyretailscience/pull/165/files#diff-63a9c44a44acf85fea213a857769990937107cf072831e1a26808cfde9d096b9">+6/-6</a>&nbsp; &nbsp; &nbsp; </td>

</tr>
</table></td></tr></tr></tbody></table>

___

> <details> <summary>  Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about Qodo Merge usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details>

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Introduced new configurable options for unit cost, promotional spend, and promotional quantity.
  - Enhanced aggregation logic to compute total unit pricing for improved cost insights.
  
- **Bug Fixes**
  - Updated test method to ensure accurate loading of options from the configuration file, expanding test coverage for new options.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->


Diff:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 992a9306..b4b2e1aa 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,4 +1,10 @@
 repos:
+  - repo: https://github.com/compilerla/conventional-pre-commit
+    rev: v3.2.0
+    hooks:
+      - id: conventional-pre-commit
+        stages: [commit-msg]
+        args: []
   - repo: https://github.com/astral-sh/ruff-pre-commit
     rev: "v0.11.0"
     hooks:
@@ -30,9 +36,3 @@ repos:
       - id: nbstripout
         files: \.(ipynb)$
         args: [--keep-output, --strip-empty-cells]
-  - repo: https://github.com/compilerla/conventional-pre-commit
-    rev: v3.2.0
-    hooks:
-      - id: conventional-pre-commit
-        stages: [commit-msg]
-        args: []
diff --git a/tests/toml_files/options_template.toml b/options_template.toml
similarity index 81%
rename from tests/toml_files/options_template.toml
rename to options_template.toml
index af9130ca..a36c404b 100644
--- a/tests/toml_files/options_template.toml
+++ b/options_template.toml
@@ -7,6 +7,9 @@ product_id = "product_id"
 unit_quantity = "unit_quantity"
 unit_price = "unit_price"
 unit_spend = "unit_spend"
+unit_cost = "unit_cost"
+promo_unit_spend = "promo_unit_spend"
+promo_unit_quantity = "promo_unit_quantity"
 store_id = "store_id"
 
 [column.agg]
@@ -16,6 +19,9 @@ product_id = "products"
 unit_quantity = "units"
 unit_price = "prices"
 unit_spend = "spend"
+unit_cost = "costs"
+promo_unit_spend = "promo_spend"
+promo_unit_quantity = "promo_units"
 store_id = "stores"
 
 [column.calc]
diff --git a/pyretailscience/options.py b/pyretailscience/options.py
index d1cb0c52..34ce1678 100644
--- a/pyretailscience/options.py
+++ b/pyretailscience/options.py
@@ -41,6 +41,9 @@ def __init__(self) -> None:
             "column.unit_quantity": "unit_quantity",
             "column.unit_price": "unit_price",
             "column.unit_spend": "unit_spend",
+            "column.unit_cost": "unit_cost",
+            "column.promo_unit_spend": "promo_unit_spend",
+            "column.promo_unit_quantity": "promo_unit_quantity",
             "column.store_id": "store_id",
             # Aggregation columns
             "column.agg.customer_id": "customers",
@@ -49,6 +52,9 @@ def __init__(self) -> None:
             "column.agg.unit_quantity": "units",
             "column.agg.unit_price": "prices",
             "column.agg.unit_spend": "spend",
+            "column.agg.unit_cost": "costs",
+            "column.agg.promo_unit_spend": "promo_spend",
+            "column.agg.promo_unit_quantity": "promo_quantity",
             "column.agg.store_id": "stores",
             # Calculated columns
             "column.calc.price_per_unit": "price_per_unit",
@@ -78,16 +84,32 @@ def __init__(self) -> None:
                 "The name of the column containing the total spend of the products in the transaction."
                 "ie, unit_price * units",
             ),
+            "column.unit_cost": (
+                "The name of the column containing the total cost of the products in the transaction. "
+                "ie, single unit cost * units",
+            ),
+            "column.promo_unit_spend": (
+                "The name of the column containing the total spend on promotion of the products in the transaction. "
+                "ie, promotional unit price * units",
+            ),
+            "column.promo_unit_quantity": ("The name of the column containing the number of units sold on promotion."),
             "column.store_id": "The name of the column containing store IDs of the transaction.",
             # Aggregation columns
             "column.agg.customer_id": "The name of the column containing the number of unique customers.",
             "column.agg.transaction_id": "The name of the column containing the number of transactions.",
             "column.agg.product_id": "The name of the column containing the number of unique products.",
             "column.agg.unit_quantity": "The name of the column containing the total number of units sold.",
-            "column.agg.unit_price": "The name of the column containing the average unit price of products.",
+            "column.agg.unit_price": "The name of the column containing the total unit price of products.",
             "column.agg.unit_spend": (
                 "The name of the column containing the total spend of the units in the transaction."
             ),
+            "column.agg.unit_cost": "The name of the column containing the total unit cost of products.",
+            "column.agg.promo_unit_spend": (
+                "The name of the column containing the total promotional spend of the units in the transaction."
+            ),
+            "column.agg.promo_unit_quantity": (
+                "The name of the column containing the total number of units sold on promotion."
+            ),
             "column.agg.store_id": "The name of the column containing the number of unique stores.",
             # Calculated columns
             "column.calc.price_per_unit": "The name of the column containing the price per unit.",
@@ -497,6 +519,33 @@ def __init__(self) -> None:
             "column.suffix.percent_difference",
         )
         self.calc_price_per_unit_contrib = self.join_options("column.calc.price_per_unit", "column.suffix.contribution")
+        # Cost
+        self.unit_cost = get_option("column.unit_cost")
+        self.agg_unit_cost = get_option("column.agg.unit_cost")
+        self.agg_unit_cost_p1 = self.join_options("column.agg.unit_cost", "column.suffix.period_1")
+        self.agg_unit_cost_p2 = self.join_options("column.agg.unit_cost", "column.suffix.period_2")
+        self.agg_unit_cost_diff = self.join_options("column.agg.unit_cost", "column.suffix.difference")
+        self.agg_unit_cost_pct_diff = self.join_options("column.agg.unit_cost", "column.suffix.percent_difference")
+        # Promo Unit Spend
+        self.promo_unit_spend = get_option("column.promo_unit_spend")
+        self.agg_promo_unit_spend = get_option("column.agg.promo_unit_spend")
+        self.agg_promo_unit_spend_p1 = self.join_options("column.agg.promo_unit_spend", "column.suffix.period_1")
+        self.agg_promo_unit_spend_p2 = self.join_options("column.agg.promo_unit_spend", "column.suffix.period_2")
+        self.agg_promo_unit_spend_diff = self.join_options("column.agg.promo_unit_spend", "column.suffix.difference")
+        self.agg_promo_unit_spend_pct_diff = self.join_options(
+            "column.agg.promo_unit_spend",
+            "column.suffix.percent_difference",
+        )
+        # Promo Unit Quantity
+        self.promo_unit_qty = get_option("column.promo_unit_quantity")
+        self.agg_promo_unit_qty = get_option("column.agg.promo_unit_quantity")
+        self.agg_promo_unit_qty_p1 = self.join_options("column.agg.promo_unit_quantity", "column.suffix.period_1")
+        self.agg_promo_unit_qty_p2 = self.join_options("column.agg.promo_unit_quantity", "column.suffix.period_2")
+        self.agg_promo_unit_qty_diff = self.join_options("column.agg.promo_unit_quantity", "column.suffix.difference")
+        self.agg_promo_unit_qty_pct_diff = self.join_options(
+            "column.agg.promo_unit_quantity",
+            "column.suffix.percent_difference",
+        )
 
     @staticmethod
     def join_options(*args: str, sep: str = "_") -> str:
diff --git a/tests/test_options.py b/tests/test_options.py
index d3dd6d45..612575e1 100644
--- a/tests/test_options.py
+++ b/tests/test_options.py
@@ -217,8 +217,8 @@ def test_find_project_root_found_in_parent(self, mock_is_file, mock_is_dir, mock
         mock_is_file.side_effect = [False]  # No pyretailscience.toml file
         assert opt.find_project_root() == Path("/home/user/project")
 
-    def test_load_walmart_toml(self):
-        """Test loading the walmart.toml file updates the options correctly."""
+    def test_load_option_toml(self):
+        """Test loading the test_options.toml file updates the options correctly."""
         test_file_path = Path("tests/toml_files/test_options.toml").resolve()
         options = opt.Options.load_from_toml(test_file_path)
 
@@ -230,6 +230,9 @@ def test_load_walmart_toml(self):
         assert options.get_option("column.unit_quantity") == "new_unit_quantity"
         assert options.get_option("column.unit_price") == "new_unit_price"
         assert options.get_option("column.unit_spend") == "new_unit_spend"
+        assert options.get_option("column.unit_cost") == "new_unit_cost"
+        assert options.get_option("column.promo_unit_spend") == "new_promo_unit_spend"
+        assert options.get_option("column.promo_unit_quantity") == "new_promo_unit_quantity"
         assert options.get_option("column.store_id") == "new_store_id"
 
         assert options.get_option("column.agg.customer_id") == "new_customers"
@@ -238,6 +241,9 @@ def test_load_walmart_toml(self):
         assert options.get_option("column.agg.unit_quantity") == "new_units"
         assert options.get_option("column.agg.unit_price") == "new_prices"
         assert options.get_option("column.agg.unit_spend") == "new_spend"
+        assert options.get_option("column.agg.unit_cost") == "new_costs"
+        assert options.get_option("column.agg.promo_unit_spend") == "new_promo_spend"
+        assert options.get_option("column.agg.promo_unit_quantity") == "new_promo_units"
         assert options.get_option("column.agg.store_id") == "new_stores"
 
         assert options.get_option("column.calc.price_per_unit") == "new_price_per_unit"
diff --git a/tests/toml_files/test_options.toml b/tests/toml_files/test_options.toml
index de11f9be..deed0eab 100644
--- a/tests/toml_files/test_options.toml
+++ b/tests/toml_files/test_options.toml
@@ -7,6 +7,9 @@ product_id = "new_product_id"
 unit_quantity = "new_unit_quantity"
 unit_price = "new_unit_price"
 unit_spend = "new_unit_spend"
+unit_cost = "new_unit_cost"
+promo_unit_spend = "new_promo_unit_spend"
+promo_unit_quantity = "new_promo_unit_quantity"
 store_id = "new_store_id"
 
 [column.agg]
@@ -16,6 +19,9 @@ product_id = "new_products"
 unit_quantity = "new_units"
 unit_price = "new_prices"
 unit_spend = "new_spend"
+unit_cost = "new_costs"
+promo_unit_spend = "new_promo_spend"
+promo_unit_quantity = "new_promo_units"
 store_id = "new_stores"
 
 [column.calc]


Reviews:
user: login: copilot-pull-request-reviewer[bot]
body: ## Pull Request Overview

This PR adds new configuration columns to support upcoming functionality by updating options mappings, templates, and tests, and also integrates a new pre-commit hook for conventional commit messages.
- Added new columns (unit_cost, promo_unit_spend, promo_unit_quantity) to options files and corresponding test assertions.
- Updated the options documentation within the code and the options_template.toml.
- Integrated a new pre-commit hook and removed a duplicate configuration.

### Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

<details>
<summary>Show a summary per file</summary>

| File                                 | Description                                                |
| ------------------------------------ | ---------------------------------------------------------- |
| tests/toml_files/test_options.toml   | Added new column definitions for unit_cost and promo-related options. |
| tests/test_options.py                | Renamed test and added assertions for the new options.     |
| pyretailscience/options.py           | Updated the options mapping and documentation to include the new columns. |
| options_template.toml                | Updated the template file with new column entries.         |
| .pre-commit-config.yaml              | Integrated a new conventional-commit hook and removed duplicate entries. |
</details>





state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-30T14:26:56Z
user: login: qodo-code-review[bot]
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-03-30T14:28:29Z
user: login: mayurkmmt
state: APPROVED
author_association: COLLABORATOR
submitted_at: 2025-03-31T06:30:41Z

Review comments:
diff_hunk: @@ -78,16 +84,32 @@ def __init__(self) -> None:
                 "The name of the column containing the total spend of the products in the transaction."
                 "ie, unit_price * units",
             ),
+            "column.unit_cost": (
+                "The name of the column containing the total cost of the products in the transaction."
path: pyretailscience/options.py
user: login: Copilot
body: The string literal for the documentation for 'column.unit_cost' concatenates two parts without a space, which may affect readability. Consider adding a space at the end of the first string literal.
```suggestion
                "The name of the column containing the total cost of the products in the transaction. "
```
created_at: 2025-03-30T14:26:56Z
author_association: CONTRIBUTOR
diff_hunk: @@ -78,16 +84,32 @@ def __init__(self) -> None:
                 "The name of the column containing the total spend of the products in the transaction."
                 "ie, unit_price * units",
             ),
+            "column.unit_cost": (
+                "The name of the column containing the total cost of the products in the transaction."
+                "ie, single unit cost * units",
+            ),
+            "column.promo_unit_spend": (
+                "The name of the column containing the total spend on promotion of the products in the transaction."
path: pyretailscience/options.py
user: login: Copilot
body: The concatenated string for 'column.promo_unit_spend' documentation lacks a separative space between the sentences. Adding a space after the period will improve clarity.
```suggestion
                "The name of the column containing the total spend on promotion of the products in the transaction. "
```
created_at: 2025-03-30T14:26:56Z
author_association: CONTRIBUTOR
diff_hunk: @@ -78,16 +84,32 @@ def __init__(self) -> None:
                 "The name of the column containing the total spend of the products in the transaction."
                 "ie, unit_price * units",
             ),
+            "column.unit_cost": (
+                "The name of the column containing the total cost of the products in the transaction."
+                "ie, single unit cost * units",
+            ),
path: pyretailscience/options.py
user: login: qodo-code-review[bot]
body: **Suggestion:** Fix missing space in description
```suggestion
            "column.unit_cost": (
                "The name of the column containing the total cost of the products in the transaction. "
                "ie, single unit cost * units",
            ),
```

<!-- manually_applied -->
created_at: 2025-03-30T14:28:29Z
author_association: CONTRIBUTOR

PR comments:
user: login: coderabbitai[bot]
created_at: 2025-03-30T14:26:31Z
body: <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->

## Walkthrough
This pull request updates several configuration and test files to add and update options related to unit costs and promotional metrics. The changes include reintroducing a pre-commit hook configuration in the pre-commit file, adding new keys and updating existing ones in TOML configuration files, extending the options handling in the Python module, and revising tests accordingly. These modifications ensure that the application properly supports and verifies the new metrics.

## Changes

| File(s)                                       | Summary                                                                                                                                                               |
|-----------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `.pre-commit-config.yaml`                     | Reintroduces the `conventional-pre-commit` hook for the `commit-msg` stage by adding a new repository configuration and removing the duplicate entry.             |
| `options_template.toml`<br>`tests/toml_files/...` | Adds three new keys (`unit_cost`, `promo_unit_spend`, `promo_unit_quantity`) and updates corresponding aggregation keys in both the main and test TOML files.  |
| `pyretailscience/options.py`                  | Introduces new options, descriptions, and attributes for unit cost and promotional metrics while updating the description for the aggregated unit price.           |
| `tests/test_options.py`                       | Renames the test method from `test_load_walmart_toml` to `test_load_option_toml` and expands assertions to check for the new options and aggregation keys.          |

## Sequence Diagram(s)
```mermaid
sequenceDiagram
    participant T as Test
    participant O as Options Loader
    participant F as TOML Config
    participant C as Options/ColumnHelper

    T->>O: Invoke test_load_option_toml()
    O->>F: Read new keys & aggregation settings
    F-->>O: Return configuration data
    O->>C: Initialize Options instance with new metrics
    C-->>O: Set attributes for unit cost and promotional metrics
```

## Possibly related PRs
- **Data-Simply/pyretailscience#51**: Reintroduces the `conventional-pre-commit` hook configuration, similar to the adjustments made in this PR.

## Suggested labels
`enhancement`, `Tests`, `Review effort [1-5]: 3`

## Poem
> I’m a rabbit with a hop in my stride,  
> Seeing new keys hop in from every side.  
> Configs and tests now dance in tune,  
> Like carrots in sun on a bright afternoon.  
> Changes so sweet make my ears perk high—  
> Hoppity days, oh my, oh my!  
> 🥕🐇

<!-- walkthrough_end -->


---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 2a05ff75c9032ca09238f57be35da4f71737cf4c and 1f6f8d0c03332548ac862484fd1456aefe45c1b3.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `pyretailscience/options.py` (4 hunks)

</details>

<details>
<summary>🔇 Additional comments (6)</summary><blockquote>

<details>
<summary>pyretailscience/options.py (6)</summary>

`44-46`: **New columns added successfully.**

The new columns for unit cost, promotional unit spend, and promotional unit quantity are well-integrated into the existing options structure.

---

`55-57`: **Aggregation columns added correctly.**

The new aggregation columns follow the established pattern and use consistent naming conventions.

---

`87-95`: **Well-documented new columns.**

The descriptions for the new columns are clear and provide good context about what each column represents and how it's calculated.

---

`106-112`: **Good documentation for new aggregation columns.**

The descriptions for the new aggregation columns are clear and consistent with the existing style.

---

`522-548`: **Well-structured implementation of new column helpers.**

The new attributes in the ColumnHelper class are well-organized and follow the established pattern for handling columns, their aggregations, and corresponding period comparisons.

Note the variable naming consistency: `promo_unit_quantity` in the options becomes `promo_unit_qty` in the helper, matching the pattern used for `unit_quantity`/`unit_qty`.

---

`102-102`: <details>
<summary>❓ Verification inconclusive</summary>

**Verify potential breaking change in unit_price description.**

The description for "column.agg.unit_price" has been changed from "average unit price" to "total unit price". This semantic change might affect consumers of this API who expect an average rather than a total.

---

🏁 Script executed:

```shell
#!/bin/bash
# Check where this aggregation is used in the codebase
rg -A 2 -B 2 "column\.agg\.unit_price" --glob "*.py"

# Check for any calculations that might be affected by this change
rg "average.*unit_price|unit_price.*average" --glob "*.py"
```

Length of output: 1575

---



</details>

**Action Required: Confirm Intentional Change in Unit Price Description**

After reviewing the code references, it appears that the only change is in the descriptive text for the `"column.agg.unit_price"` option (located in `pyretailscience/options.py` at line 102). Our searches did not reveal any calculations or tests referencing the term “average unit price”—the only occurrence is within the option’s documentation. However, since external consumers might rely on the exact wording of this description, please verify that changing it from “average unit price” to “total unit price” is intentional. If this semantic update is intended, consider updating any related documentation or communication; otherwise, reverting to the previous description might be necessary to avoid breaking consumer expectations.

</details>

</blockquote></details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIAMxJqLjRaenIAdwUvRwxkAn5ucXwcsPx7bG5ufApQ8qZmeAwiSFjsDDF4IrQvdVloyDS0ZAcBetwaejlIbERKSGYJTDTZAGt0DHpUeCUMcVj4KMHIDEcBWYBGADYAVg0YWA9eeGZneUERdql+WLCEZDJYTAMEhsHYoXKlBq4CiKbBAo4kDJMLLMHKAFAIAAatdQAfSYiFw6IANJB0bwWPhsVjcNjENwyLQiWt6KTocwKVTsUFMOFZOjUXlcPd8oViml1AgsIKPEwlAJBiRido2PRqGUKlVxI0ptw6g0mi02iKuj0NG4hQwAY1pCg2lklNraNRrQKhej8AUOjkNNxec14JFiWl7v4fh50plssgAZ9TmR0Ckoi6PO6RchaPB2p0XIqvEUmmLBXNFPA9gxqJ7wegiER/ERy0UmYwugxvE76EjIyUbUwKJUqDRQzN4Rk9iQvLRELcACIkXDaSL0JSIBgUeAeorIWJVUPDiMoqNoT5dRClWNYBoMO10W4AQRS6k9XS8smJUpJKYr2JozG4XidGgIZgvHRP1IkgAEZBIONykdcYu38WJIjEQcwwRPdikwegpXgPge38WkinTLU0GrWt6ywUdx0nNxSjIBwQzfA1MwwY1cFeb433DDt91fEIDxjKCsH+QEogaHd0RofFsQ/DdvV9PZIluOBNltbAlx3ZJ0xFL50EQGZqgrZpt04tDKInRs0D8Mg0HqLV8A4oVJNCLdcL/Vc2KUxyQhgAB5ABZAAZUCPAg9AvBPSAzw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+drq6K/k/SxK0a3zSa9K387zla0G0wVm7a6q7yxq4W97bJBLmLUnAYA3NSnqd8BnO3NnTFD3JwH4GgAPOrcPP/KPFQNXBPHXNPH2ynAoFmiGRONiGEgiHQDSHOF7L2/28ImgGIlcM9QAOxXAMAACcYiAiwiZYYiN7wiAiAAHLEFcBe6cAIlcI6AACyxAXtnAXsCIXsMCxD/sMBTyGD9tnCxAXCxBvu0BiIMD3sCIPtXD/tvtLJvsXDCLYeAe0BnD/tXAXBoCUYkCkcMBnACACIwezxQDQKbvDo7tNRe1pz6BAA=== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details>
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=Data-Simply/pyretailscience&utm_content=165):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Generate unit testing code for this file.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai generate unit testing code for this file.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and generate unit testing code.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai plan` to trigger planning for file edits and PR creation.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->
author_association: NONE
user: login: qodo-code-review[bot]
created_at: 2025-03-30T14:26:41Z
body: ## PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

<table>
<tr><td>⏱️&nbsp;<strong>Estimated effort to review</strong>: 2 🔵🔵⚪⚪⚪</td></tr>
<tr><td>🧪&nbsp;<strong>PR contains tests</strong></td></tr>
<tr><td>🔒&nbsp;<strong>No security concerns identified</strong></td></tr>
<tr><td>⚡&nbsp;<strong>Recommended focus areas for review</strong><br><br>

<details><summary><a href='https://github.com/Data-Simply/pyretailscience/pull/165/files#diff-d2ba5d1fff6049c395bba1ea7be4464e194f2a0b352b05980c0bdc9560dc48d1R102-R102'><strong>Description Inconsistency</strong></a>

The description for "column.agg.unit_price" was changed from "average unit price of products" to "total unit price of products" which may impact how this field is interpreted by users of the library.
</summary>

```python
"column.agg.unit_price": "The name of the column containing the total unit price of products.",
```

</details>

</td></tr>
</table>

author_association: CONTRIBUTOR
user: login: qodo-code-review[bot]
created_at: 2025-03-30T14:27:00Z
body: ## PR Code Suggestions ✨

<!-- 2a05ff7 -->

Explore these optional code suggestions:

<table><thead><tr><td><strong>Category</strong></td><td align=left><strong>Suggestion&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </strong></td><td align=center><strong>Impact</strong></td></tr><tbody><tr><td rowspan=2>General</td>
<td>



<details><summary>Fix aggregation description inconsistency</summary>

___


**The description for <code>column.agg.unit_price</code> has been changed from "average unit <br>price" to "total unit price", which may be incorrect. Aggregated unit price <br>typically represents an average rather than a sum.**

[pyretailscience/options.py [102]](https://github.com/Data-Simply/pyretailscience/pull/165/files#diff-d2ba5d1fff6049c395bba1ea7be4464e194f2a0b352b05980c0bdc9560dc48d1R102-R102)

```diff
-"column.agg.unit_price": "The name of the column containing the total unit price of products.",
+"column.agg.unit_price": "The name of the column containing the average unit price of products.",
```

- [ ] **Apply this suggestion** <!-- /improve --apply_suggestion=0 -->

<details><summary>Suggestion importance[1-10]: 7</summary>

__

Why: The suggestion correctly identifies an inconsistency where the description for "column.agg.unit_price" was changed from "average unit price" to "total unit price". This is likely an error since aggregated price metrics typically represent averages rather than sums, and the change contradicts the previous description in the old code.


</details></details></td><td align=center>Medium

</td></tr><tr><td>



<details><summary>✅ 
Fix missing space in description
</summary>

___


**There's a missing space between the two string parts in the description, which <br>will cause them to be concatenated without proper spacing.**

[pyretailscience/options.py [87-90]](https://github.com/Data-Simply/pyretailscience/pull/165/files#diff-d2ba5d1fff6049c395bba1ea7be4464e194f2a0b352b05980c0bdc9560dc48d1R87-R90)

```diff
 "column.unit_cost": (
-    "The name of the column containing the total cost of the products in the transaction."
+    "The name of the column containing the total cost of the products in the transaction. "
     "ie, single unit cost * units",
 ),
```

`[Suggestion has been applied]`

<details><summary>Suggestion importance[1-10]: 4</summary>

__

Why: The suggestion correctly identifies a minor formatting issue where there's no space between two concatenated strings in the description, which would result in run-on text. While this is a valid improvement for readability, it's a relatively minor cosmetic fix.


</details></details></td><td align=center>Low

</td></tr>
<tr><td align="center" colspan="2">

- [ ] Update <!-- /improve --more_suggestions=true -->

</td><td></td></tr></tbody></table>
author_association: CONTRIBUTOR
user: login: codecov[bot]
created_at: 2025-03-30T14:27:31Z
body: ## [Codecov](https://app.codecov.io/gh/Data-Simply/pyretailscience/pull/165?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Data-Simply) Report
All modified and coverable lines are covered by tests :white_check_mark:

| [Files with missing lines](https://app.codecov.io/gh/Data-Simply/pyretailscience/pull/165?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Data-Simply) | Coverage Δ | |
|---|---|---|
| [pyretailscience/options.py](https://app.codecov.io/gh/Data-Simply/pyretailscience/pull/165?src=pr&el=tree&filepath=pyretailscience%2Foptions.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Data-Simply#diff-cHlyZXRhaWxzY2llbmNlL29wdGlvbnMucHk=) | `97.77% <100.00%> (+0.24%)` | :arrow_up: |

<details><summary> :rocket: New features to boost your workflow: </summary>

- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
</details>
author_association: NONE