File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 15
15
- [ ENH] Add fix for slicing error when selecting columns in ` pivot_wider ` . Issue #1134 @samukweku
16
16
- [ ENH] ` dropna ` parameter added to ` pivot_longer ` . Issue #1132 @samukweku
17
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
18
19
19
20
## [ v0.23.1] - 2022-05-03
20
21
Original file line number Diff line number Diff line change @@ -124,7 +124,8 @@ def softmax(s: pd.Series) -> pd.Series:
124
124
:param s: Input Series.
125
125
:return: Transformed Series.
126
126
"""
127
- return scipy_softmax (s )
127
+
128
+ return pd .Series (scipy_softmax (s ), index = s .index , name = s .name )
128
129
129
130
130
131
@pf .register_series_method
You can’t perform that action at this time.
0 commit comments