66import pandas as pd
77from pandas import Index , Series
88import pandas ._testing as tm
9- from pandas .core .construction import create_series_with_explicit_index_type
9+ from pandas .core .construction import create_series_with_explicit_index
1010from pandas .core .indexes .datetimes import Timestamp
1111
1212
@@ -105,7 +105,7 @@ def test_quantile_nan(self):
105105 assert result == expected
106106
107107 # all nan/empty
108- s1 = create_series_with_explicit_index_type ([], dtype = object )
108+ s1 = create_series_with_explicit_index ([], dtype = object )
109109 cases = [s1 , Series ([np .nan , np .nan ])]
110110
111111 for s in cases :
@@ -165,10 +165,10 @@ def test_quantile_box(self, case):
165165 def test_datetime_timedelta_quantiles (self ):
166166 # covers #9694
167167 assert pd .isna (
168- create_series_with_explicit_index_type ([], dtype = "M8[ns]" ).quantile (0.5 )
168+ create_series_with_explicit_index ([], dtype = "M8[ns]" ).quantile (0.5 )
169169 )
170170 assert pd .isna (
171- create_series_with_explicit_index_type ([], dtype = "m8[ns]" ).quantile (0.5 )
171+ create_series_with_explicit_index ([], dtype = "m8[ns]" ).quantile (0.5 )
172172 )
173173
174174 def test_quantile_nat (self ):
@@ -191,7 +191,7 @@ def test_quantile_sparse(self, values, dtype):
191191 def test_quantile_empty (self ):
192192
193193 # floats
194- s = create_series_with_explicit_index_type ([], dtype = "float64" )
194+ s = create_series_with_explicit_index ([], dtype = "float64" )
195195
196196 res = s .quantile (0.5 )
197197 assert np .isnan (res )
@@ -201,7 +201,7 @@ def test_quantile_empty(self):
201201 tm .assert_series_equal (res , exp )
202202
203203 # int
204- s = create_series_with_explicit_index_type ([], dtype = "int64" )
204+ s = create_series_with_explicit_index ([], dtype = "int64" )
205205
206206 res = s .quantile (0.5 )
207207 assert np .isnan (res )
@@ -211,7 +211,7 @@ def test_quantile_empty(self):
211211 tm .assert_series_equal (res , exp )
212212
213213 # datetime
214- s = create_series_with_explicit_index_type ([], dtype = "datetime64[ns]" )
214+ s = create_series_with_explicit_index ([], dtype = "datetime64[ns]" )
215215
216216 res = s .quantile (0.5 )
217217 assert res is pd .NaT
0 commit comments