We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 62d50b8 + cadd12f commit f55e0edCopy full SHA for f55e0ed
CHANGELOG.md
@@ -15,6 +15,7 @@
15
- [ENH] Add fix for slicing error when selecting columns in `pivot_wider`. Issue #1134 @samukweku
16
- [ENH] `dropna` parameter added to `pivot_longer`. Issue #1132 @samukweku
17
- [INF] Update `mkdocstrings` version and to fit its new coming features. PR #1138 @Zeroto521
18
+- [BUG] Force `math.softmax` returning `Series`. PR #1139 @Zeroto521
19
20
## [v0.23.1] - 2022-05-03
21
janitor/math.py
@@ -124,7 +124,8 @@ def softmax(s: pd.Series) -> pd.Series:
124
:param s: Input Series.
125
:return: Transformed Series.
126
"""
127
- return scipy_softmax(s)
+
128
+ return pd.Series(scipy_softmax(s), index=s.index, name=s.name)
129
130
131
@pf.register_series_method
0 commit comments