Skip to content

Commit 8cdd4e4

Browse files
committed
MAINT: removed object array handling in shapiro.
This feature is unnecessary. Removing.
1 parent c634a5b commit 8cdd4e4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scipy/stats/morestats.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,10 +1256,6 @@ def shapiro(x, a=None, reta=False):
12561256
warnings.warn("input parameters 'a' and 'reta' are scheduled to be "
12571257
"removed in version 0.18.0", FutureWarning)
12581258
x = np.ravel(x)
1259-
if x.dtype == object:
1260-
# np.ravel and np.ndarray.flatten don't work with dtype=object
1261-
# i.e. they will fail to flatten if there are different sized arrays.
1262-
x = np.hstack(x)
12631259

12641260
N = len(x)
12651261
if N < 3:

0 commit comments

Comments
 (0)