Skip to content

Commit f55e0ed

Browse files
authored
Merge branch 'dev' into doc/update-mkdocstrings
2 parents 62d50b8 + cadd12f commit f55e0ed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- [ENH] Add fix for slicing error when selecting columns in `pivot_wider`. Issue #1134 @samukweku
1616
- [ENH] `dropna` parameter added to `pivot_longer`. Issue #1132 @samukweku
1717
- [INF] Update `mkdocstrings` version and to fit its new coming features. PR #1138 @Zeroto521
18+
- [BUG] Force `math.softmax` returning `Series`. PR #1139 @Zeroto521
1819

1920
## [v0.23.1] - 2022-05-03
2021

janitor/math.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def softmax(s: pd.Series) -> pd.Series:
124124
:param s: Input Series.
125125
:return: Transformed Series.
126126
"""
127-
return scipy_softmax(s)
127+
128+
return pd.Series(scipy_softmax(s), index=s.index, name=s.name)
128129

129130

130131
@pf.register_series_method

0 commit comments

Comments
 (0)