-
Notifications
You must be signed in to change notification settings - Fork 1
product association #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
product association #149
Conversation
WalkthroughThe changes update the Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Suite
participant PA as ProductAssociation
participant DF as DataFrame Executor
Test->>PA: Instantiate ProductAssociation
PA->>PA: Call _calc_association to build table
Test->>PA: Access df property
PA->>PA: Check if _df is None
PA->>DF: Execute table and reset index
DF-->>PA: Return DataFrame
PA-->>Test: Provide DataFrame via df property
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Definitions (1)tests/analysis/test_product_association.py (1)
🔇 Additional comments (11)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov ReportAttention: Patch coverage is
🚀 New features to boost your workflow:
|
User description
fix: added function to convert ibis tablee into df
PR Type
Enhancement, Tests
Description
Refactored
ProductAssociation
class to improve data handling.Added a property method to execute and return DataFrame.
Updated tests to align with the refactored class structure.
Improved code readability and consistency in method usage.
Changes walkthrough 📝
product_association.py
Refactored `ProductAssociation` class for better data handling
pyretailscience/analysis/product_association.py
_df
attribute anddf
property for DataFrame execution.self.df
withself.table
for internal associationcalculations.
_calc_association
method to return a sorted and renamedresult.
execution.
test_product_association.py
Updated tests for refactored `ProductAssociation` class
tests/analysis/test_product_association.py
ProductAssociation
class.df
property.Summary by CodeRabbit
Refactor
Tests