Skip to content

docs: Add examples for all methods#24

Open
Marius Merkle (MariusMerkleQC) wants to merge 2 commits intomainfrom
docs_examples
Open

docs: Add examples for all methods#24
Marius Merkle (MariusMerkleQC) wants to merge 2 commits intomainfrom
docs_examples

Conversation

@MariusMerkleQC
Copy link
Copy Markdown
Collaborator

@MariusMerkleQC Marius Merkle (MariusMerkleQC) commented Mar 27, 2026

Motivation

Solves #22. Claude examples for all methods in DataFrameComparison, Schemas, and the assert_{frame,colection}_equal methods (I verified them). Please give it a look here. For instance, the change_counts() method now looks as follows:

image

Changes

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 27, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (cccfad4) to head (9b23fef).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #24   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          758       758           
=========================================
  Hits           758       758           

☔ View full report in Codecov by Sentry.
📢 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.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds doctest-style usage examples across the public API so users can more easily understand diffly’s comparison and testing helpers, addressing the documentation gap described in #22.

Changes:

  • Added usage examples to compare_frames() and many DataFrameComparison/Schemas methods.
  • Added usage examples to assert_frame_equal() and assert_collection_equal().

Reviewed changes

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

File Description
diffly/testing.py Adds docstring examples for the testing assertions.
diffly/comparison.py Adds docstring examples for compare_frames, DataFrameComparison methods, and Schemas APIs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add examples to documentation

2 participants