Skip to content

Commit

Permalink
Merge pull request pegasystems#177 from pegasystems/pl_0_20_patch
Browse files Browse the repository at this point in the history
improve polars patch PR
  • Loading branch information
yusufuyanik1 authored Dec 20, 2023
2 parents f69b76c + 8c3c8c2 commit b97a2c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/articles/ADMExplained.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -641,12 +641,12 @@
" pl.col(\"Contents\").cast(pl.Utf8)\n",
" ).with_columns(\n",
" pl.when(pl.col(\"Type\") == \"numeric\")\n",
" .then(pl.col(\"Contents\").apply(lambda col: extract_numbers_in_contents(col, 0)))\n",
" .then(pl.col(\"Contents\").map_elements(lambda col: extract_numbers_in_contents(col, 0)))\n",
" .otherwise(pl.lit(-9999))\n",
" .alias(\"BinLowerBound\")\n",
" .cast(pl.Float32),\n",
" pl.when(pl.col(\"Type\") == \"numeric\")\n",
" .then(pl.col(\"Contents\").apply(lambda col: extract_numbers_in_contents(col, 1)))\n",
" .then(pl.col(\"Contents\").map_elements(lambda col: extract_numbers_in_contents(col, 1)))\n",
" .otherwise(pl.lit(-9999))\n",
" .alias(\"BinUpperBound\")\n",
" .cast(pl.Float32),\n",
Expand Down
2 changes: 1 addition & 1 deletion python/pdstools/valuefinder/ValueFinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(
self.StageOrder = (
pl.DataFrame(
{"pyStage": self.NBADStages},
schema={"pyStage": pl.Categorical("physical")},
schema={"pyStage": pl.Enum(self.NBADStages)},
)
.select(pl.col("pyStage"))
.lazy()
Expand Down
2 changes: 1 addition & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plotly>=5.5.0
requests
pydot
tqdm
polars>=0.20.0, <=0.20.1
polars>=0.20.0, <0.21.0
pyarrow
pyyaml
aioboto3>=11.0

0 comments on commit b97a2c2

Please sign in to comment.