Commit b25c50b
committed
FIX: do not mutate Series input to Normalize()
This forces a copy in all cases. For input sequences which are base
python (list, tuple, deque, ...) this will cause a second un-needed copy
of all of the data, but will force the required copy in the case where
the the input values is enough ndarray-like for `ma.asarray` to re-use
memory.
closes #54271 parent 5ccc604 commit b25c50b
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
908 | | - | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
909 | 912 | | |
910 | 913 | | |
911 | 914 | | |
| |||
0 commit comments