File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 99
1010import pandas as pd
1111from pandas import (
12- DataFrame ,
1312 Series ,
1413 date_range ,
1514)
@@ -228,28 +227,6 @@ def test_sem(self):
228227 result = s .sem (ddof = 1 )
229228 assert pd .isna (result )
230229
231- def test_skew (self ):
232- sp_stats = pytest .importorskip ("scipy.stats" )
233-
234- string_series = Series (range (20 ), dtype = np .float64 , name = "series" )
235-
236- alt = lambda x : sp_stats .skew (x , bias = False )
237- self ._check_stat_op ("skew" , alt , string_series )
238-
239- # test corner cases, skew() returns NaN unless there's at least 3
240- # values
241- min_N = 3
242- for i in range (1 , min_N + 1 ):
243- s = Series (np .ones (i ))
244- df = DataFrame (np .ones ((i , i )))
245- if i < min_N :
246- assert np .isnan (s .skew ())
247- assert np .isnan (df .skew ()).all ()
248- else :
249- assert 0 == s .skew ()
250- assert isinstance (s .skew (), np .float64 ) # GH53482
251- assert (df .skew () == 0 ).all ()
252-
253230 def test_kurt (self ):
254231 sp_stats = pytest .importorskip ("scipy.stats" )
255232
You can’t perform that action at this time.
0 commit comments