Skip to content

Commit

Permalink
Merge pull request #235 from kayjan/add-polars
Browse files Browse the repository at this point in the history
Add polars
  • Loading branch information
kayjan authored May 28, 2024
2 parents 6cf55ba + 3d059f7 commit d2dc2fd
Show file tree
Hide file tree
Showing 21 changed files with 3,650 additions and 1,064 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
python -m pip install pandas pydot Pillow
python -m pip install ".[all]"
- name: Generate coverage report and benchmark report
run: |
python -m pip install pytest pytest-cov pytest-benchmark[histogram]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand All @@ -26,7 +26,7 @@ jobs:
echo "Python version $python_version"
- name: Install dependencies
run: |
python -m pip install pandas pydot Pillow
python -m pip install ".[all]"
- name: Lint with flake8
run: |
python -m pip install flake8
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.18.0] - 2024-05-28
### Added:
- Tree Constructor: Polars method `polars_to_tree`, `polars_to_tree_by_relation`, `add_polars_to_tree_by_path`,
and `add_polars_to_tree_by_name`.
- Tree Exporter: Polars method `tree_to_polars`.
### Fixed:
- Misc: Documentation to update mkdocs-material version for social plugin.
- Misc: Update links in README.
Expand Down Expand Up @@ -560,7 +566,8 @@ ignore null attribute columns.
- Utility Iterator: Tree traversal methods.
- Workflow To Do App: Tree use case with to-do list implementation.

[Unreleased]: https://github.com/kayjan/bigtree/compare/0.17.2...HEAD
[Unreleased]: https://github.com/kayjan/bigtree/compare/0.18.0...HEAD
[0.18.0]: https://github.com/kayjan/bigtree/compare/0.17.2...0.18.0
[0.17.2]: https://github.com/kayjan/bigtree/compare/0.17.1...0.17.2
[0.17.1]: https://github.com/kayjan/bigtree/compare/0.17.0...0.17.1
[0.17.0]: https://github.com/kayjan/bigtree/compare/0.16.4...0.17.0
Expand Down
8 changes: 3 additions & 5 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@

The latest version of bigtree is supported with security updates.

| Version | Supported |
|---------| ------------------ |
| 0.12.x | :white_check_mark: |
| 0.13.x | :white_check_mark: |
| 0.14.x | :white_check_mark: |
| Version | Supported |
|-----------| ------------------ |
| >= 0.12.x | :white_check_mark: |


## Reporting a Vulnerability
Expand Down
Binary file modified assets/docs/tree_construct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion bigtree/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.17.2"
__version__ = "0.18.0"

from bigtree.binarytree.construct import list_to_binarytree
from bigtree.dag.construct import dataframe_to_dag, dict_to_dag, list_to_dag
Expand All @@ -13,13 +13,17 @@
add_dict_to_tree_by_name,
add_dict_to_tree_by_path,
add_path_to_tree,
add_polars_to_tree_by_name,
add_polars_to_tree_by_path,
dataframe_to_tree,
dataframe_to_tree_by_relation,
dict_to_tree,
list_to_tree,
list_to_tree_by_relation,
nested_dict_to_tree,
newick_to_tree,
polars_to_tree,
polars_to_tree_by_relation,
str_to_tree,
)
from bigtree.tree.export import (
Expand All @@ -33,6 +37,7 @@
tree_to_nested_dict,
tree_to_newick,
tree_to_pillow,
tree_to_polars,
yield_tree,
)
from bigtree.tree.helper import clone_tree, get_subtree, get_tree_diff, prune_tree
Expand Down
Loading

0 comments on commit d2dc2fd

Please sign in to comment.