Skip to content

Commit d2dc2fd

Browse files
authored
Merge pull request #235 from kayjan/add-polars
Add polars
2 parents 6cf55ba + 3d059f7 commit d2dc2fd

21 files changed

+3650
-1064
lines changed

.github/workflows/codecov.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
echo $CONDA/bin >> $GITHUB_PATH
2727
- name: Install dependencies
2828
run: |
29-
python -m pip install pandas pydot Pillow
29+
python -m pip install ".[all]"
3030
- name: Generate coverage report and benchmark report
3131
run: |
3232
python -m pip install pytest pytest-cov pytest-benchmark[histogram]

.github/workflows/pytest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1616
fail-fast: false
1717
steps:
1818
- uses: actions/checkout@v3
@@ -26,7 +26,7 @@ jobs:
2626
echo "Python version $python_version"
2727
- name: Install dependencies
2828
run: |
29-
python -m pip install pandas pydot Pillow
29+
python -m pip install ".[all]"
3030
- name: Lint with flake8
3131
run: |
3232
python -m pip install flake8

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
9+
## [0.18.0] - 2024-05-28
10+
### Added:
11+
- Tree Constructor: Polars method `polars_to_tree`, `polars_to_tree_by_relation`, `add_polars_to_tree_by_path`,
12+
and `add_polars_to_tree_by_name`.
13+
- Tree Exporter: Polars method `tree_to_polars`.
814
### Fixed:
915
- Misc: Documentation to update mkdocs-material version for social plugin.
1016
- Misc: Update links in README.
@@ -560,7 +566,8 @@ ignore null attribute columns.
560566
- Utility Iterator: Tree traversal methods.
561567
- Workflow To Do App: Tree use case with to-do list implementation.
562568

563-
[Unreleased]: https://github.com/kayjan/bigtree/compare/0.17.2...HEAD
569+
[Unreleased]: https://github.com/kayjan/bigtree/compare/0.18.0...HEAD
570+
[0.18.0]: https://github.com/kayjan/bigtree/compare/0.17.2...0.18.0
564571
[0.17.2]: https://github.com/kayjan/bigtree/compare/0.17.1...0.17.2
565572
[0.17.1]: https://github.com/kayjan/bigtree/compare/0.17.0...0.17.1
566573
[0.17.0]: https://github.com/kayjan/bigtree/compare/0.16.4...0.17.0

SECURITY.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44

55
The latest version of bigtree is supported with security updates.
66

7-
| Version | Supported |
8-
|---------| ------------------ |
9-
| 0.12.x | :white_check_mark: |
10-
| 0.13.x | :white_check_mark: |
11-
| 0.14.x | :white_check_mark: |
7+
| Version | Supported |
8+
|-----------| ------------------ |
9+
| >= 0.12.x | :white_check_mark: |
1210

1311

1412
## Reporting a Vulnerability

assets/docs/tree_construct.png

21.8 KB
Loading

bigtree/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.17.2"
1+
__version__ = "0.18.0"
22

33
from bigtree.binarytree.construct import list_to_binarytree
44
from bigtree.dag.construct import dataframe_to_dag, dict_to_dag, list_to_dag
@@ -13,13 +13,17 @@
1313
add_dict_to_tree_by_name,
1414
add_dict_to_tree_by_path,
1515
add_path_to_tree,
16+
add_polars_to_tree_by_name,
17+
add_polars_to_tree_by_path,
1618
dataframe_to_tree,
1719
dataframe_to_tree_by_relation,
1820
dict_to_tree,
1921
list_to_tree,
2022
list_to_tree_by_relation,
2123
nested_dict_to_tree,
2224
newick_to_tree,
25+
polars_to_tree,
26+
polars_to_tree_by_relation,
2327
str_to_tree,
2428
)
2529
from bigtree.tree.export import (
@@ -33,6 +37,7 @@
3337
tree_to_nested_dict,
3438
tree_to_newick,
3539
tree_to_pillow,
40+
tree_to_polars,
3641
yield_tree,
3742
)
3843
from bigtree.tree.helper import clone_tree, get_subtree, get_tree_diff, prune_tree

0 commit comments

Comments
 (0)