Skip to content

Commit

Permalink
fix(python): Normalize by default in Series.entropy like Expr.entropy…
Browse files Browse the repository at this point in the history
… does (#18493)
  • Loading branch information
orlp authored Aug 31, 2024
1 parent 63cc16f commit 4dc90a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -2565,7 +2565,7 @@ def unique_counts(self) -> Series:
]
"""

def entropy(self, base: float = math.e, *, normalize: bool = False) -> float | None:
def entropy(self, base: float = math.e, *, normalize: bool = True) -> float | None:
"""
Computes the entropy.
Expand Down

0 comments on commit 4dc90a9

Please sign in to comment.