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 14
14
- [ ENH] Add ` names_expand ` and ` index_expand ` parameters to ` pivot_wider ` for exposing missing categoricals. Issue #1108 @samukweku
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
+ - [ BUG] Force ` math.softmax ` returning ` Series ` . PR #1139 @Zeroto521
17
18
18
19
## [ v0.23.1] - 2022-05-03
19
20
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