Skip to content

Commit

Permalink
Bump polars version (#319)
Browse files Browse the repository at this point in the history
We had tied our polars version to 1.16 because 1.17 introduced a regression. seems fixed now - so we can get back up to speed
  • Loading branch information
StijnKas authored Jan 20, 2025
1 parent c59686f commit ff1c5da
Show file tree
Hide file tree
Showing 5 changed files with 4,121 additions and 5 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
exclude: 'uv.lock'

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
Expand Down
14 changes: 12 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ keywords = [
"tools",
]
requires-python = ">=3.9"
dependencies = ['polars==1.16', 'typing_extensions']
dependencies = [
"polars>=0.20",
'typing_extensions',
]

[tool.setuptools.dynamic]
version = {attr="pdstools.__version__"}
Expand All @@ -42,7 +45,14 @@ pega_io = ['aioboto3', 'polars_hash']
api = ['httpx', 'pydantic', 'anyio']
healthcheck = ['pdstools[adm]', 'great_tables>=0.13', 'quarto', 'papermill', 'xlsxwriter>=3.0', 'pydot']
app = ['pdstools[healthcheck]', 'streamlit>=1.23', 'st-pages']
onnx = ['scikit-learn==1.5.1', 'skl2onnx==1.17.0', 'onnx==1.16.1', 'onnxruntime==1.18.1', 'pdstools[api]']
onnx = [
'scikit-learn==1.5.1',
'skl2onnx==1.17.0',
'onnx==1.16.1',
'pdstools[api]',
"onnxruntime==1.18.1 ; python_full_version < '3.10'",
"onnxruntime==1.20.1 ; python_full_version >= '3.10'",
]
all = ['pdstools[app, pega_io, onnx]']
dev = ['pre-commit']
docs = ['sphinx','furo','sphinx-autoapi','nbsphinx','sphinx-copybutton','myst-parser', 'sphinx-argparse']
Expand Down
2 changes: 1 addition & 1 deletion python/pdstools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Pega Data Scientist Tools Python library"""

__version__ = "4.1.1"
__version__ = "4.1.2"

from pathlib import Path

Expand Down
4 changes: 2 additions & 2 deletions python/pdstools/adm/Plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def over_time(
)

grouping_columns = list(set(by.meta.root_names()))
df = df.with_columns(by)
df = df.with_columns(by).set_sorted("SnapshotTime")
if facet:
grouping_columns = [by_col, facet]
else:
Expand Down Expand Up @@ -367,7 +367,7 @@ def over_time(

title = "over all models" if facet is None else f"per {facet}"
fig = px.line(
final_df.to_pandas(use_pyarrow_extension_array=False),
final_df,
x="SnapshotTime",
y=metric,
color=by_col,
Expand Down
Loading

0 comments on commit ff1c5da

Please sign in to comment.