Skip to content
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

Add method get_tree_diff_dataframe #330

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Conversation

kayjan
Copy link
Owner

@kayjan kayjan commented Nov 13, 2024

Description

Add method to retrieve tree diff in dataframe, which allows for customised handling and processing if required.

Testing

No additional tests needed as the current code is abstracted out. One binary node test is added for coverage.

Additional notes

Checklist

I have read through the contributing guidelines and ensured that

  • I have added a descriptive title for this pull request.
  • I have followed the convention and standards, and my code is checked for style and correctness.
  • I have added test cases, and unit tests pass with 100% code coverage.
  • I have updated the documentation and code docstrings.

Checklist (for reviewer)

  • I have added label (breaking / enhancement / bug / documentation) to this pull request, if applicable.
  • I will ensure this change is captured in the CHANGELOG.md file.

@kayjan
Copy link
Owner Author

kayjan commented Nov 13, 2024

#309

@kayjan kayjan added the enhancement New feature or request label Nov 13, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: f4d021c Previous: da6793a Ratio
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_10 14831.415013614347 iter/sec (stddev: 0.000015538035120125577) 14663.86391312339 iter/sec (stddev: 0.00001918953453884157) 0.99
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_100 647.7203708251513 iter/sec (stddev: 0.0000417450387751307) 620.4015064835517 iter/sec (stddev: 0.000018626323986998607) 0.96
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_1000 11.527330322677425 iter/sec (stddev: 0.0025230445350907594) 11.345509359694578 iter/sec (stddev: 0.007827341424602558) 0.98
tests/node/test_node_benchmark.py::test_node_benchmark_width_2_depth_10 64.46777923763104 iter/sec (stddev: 0.003996276694248504) 63.027519460014226 iter/sec (stddev: 0.00445641660332068) 0.98
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_10_no_assertions 22410.545506179933 iter/sec (stddev: 0.000008399933586656503) 22548.982027049115 iter/sec (stddev: 0.000007872926900986308) 1.01
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_100_no_assertions 1650.7502701237881 iter/sec (stddev: 0.000010573296988261747) 1614.4038402140397 iter/sec (stddev: 0.000013262070524371005) 0.98
tests/node/test_node_benchmark.py::test_node_benchmark_width_1_depth_1000_no_assertions 116.30666149428434 iter/sec (stddev: 0.0033420660964861505) 101.64071284614732 iter/sec (stddev: 0.00468543477187637) 0.87
tests/node/test_node_benchmark.py::test_node_benchmark_width_2_depth_10_no_assertions 91.48393520599221 iter/sec (stddev: 0.0033760325364061796) 86.11025857171812 iter/sec (stddev: 0.0044134609977344716) 0.94

This comment was automatically generated by workflow using github-action-benchmark.

@kayjan kayjan enabled auto-merge November 13, 2024 19:32
Copy link
Contributor

Code Coverage

Package Line Rate Branch Rate Complexity Health
bigtree 100% 100% 0
bigtree.binarytree 100% 100% 0
bigtree.dag 100% 100% 0
bigtree.node 100% 100% 0
bigtree.tree 100% 100% 0
bigtree.utils 100% 100% 0
Summary 100% (2384 / 2384) 100% (1002 / 1002) 0

@kayjan kayjan merged commit 0053187 into master Nov 13, 2024
6 checks passed
@kayjan kayjan deleted the feature/tree-diff-dataframe branch November 13, 2024 19:34
@kayjan kayjan changed the title Feature/tree diff dataframe Add method get_tree_diff_dataframe Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant