6262 randbool ,
6363 rands ,
6464 rands_array ,
65- randu_array ,
6665)
6766from pandas ._testing ._warnings import ( # noqa:F401
6867 assert_produces_warning ,
@@ -305,10 +304,6 @@ def makeStringIndex(k=10, name=None):
305304 return Index (rands_array (nchars = 10 , size = k ), name = name )
306305
307306
308- def makeUnicodeIndex (k = 10 , name = None ):
309- return Index (randu_array (nchars = 10 , size = k ), name = name )
310-
311-
312307def makeCategoricalIndex (k = 10 , n = 3 , name = None , ** kwargs ):
313308 """make a length k index or n categories"""
314309 x = rands_array (nchars = 4 , size = n , replace = False )
@@ -521,10 +516,10 @@ def makeCustomIndex(
521516 label will repeated at the corresponding level, you can specify just
522517 the first few, the rest will use the default ndupe_l of 1.
523518 len(ndupe_l) <= nlevels.
524- idx_type - "i"/"f"/"s"/"u"/" dt"/"p"/"td".
519+ idx_type - "i"/"f"/"s"/"dt"/"p"/"td".
525520 If idx_type is not None, `idx_nlevels` must be 1.
526521 "i"/"f" creates an integer/float index,
527- "s"/"u" creates a string/unicode index
522+ "s" creates a string
528523 "dt" create a datetime index.
529524 "td" create a datetime index.
530525
@@ -554,7 +549,6 @@ def makeCustomIndex(
554549 "i" : makeIntIndex ,
555550 "f" : makeFloatIndex ,
556551 "s" : makeStringIndex ,
557- "u" : makeUnicodeIndex ,
558552 "dt" : makeDateIndex ,
559553 "td" : makeTimedeltaIndex ,
560554 "p" : makePeriodIndex ,
@@ -569,7 +563,7 @@ def makeCustomIndex(
569563 elif idx_type is not None :
570564 raise ValueError (
571565 f"{ repr (idx_type )} is not a legal value for `idx_type`, "
572- "use 'i'/'f'/'s'/'u'/' dt'/'p'/'td'."
566+ "use 'i'/'f'/'s'/'dt'/'p'/'td'."
573567 )
574568
575569 if len (ndupe_l ) < nlevels :
@@ -651,10 +645,10 @@ def makeCustomDataframe(
651645 nrows/ncol, the last label might have lower multiplicity.
652646 dtype - passed to the DataFrame constructor as is, in case you wish to
653647 have more control in conjunction with a custom `data_gen_f`
654- r_idx_type, c_idx_type - "i"/"f"/"s"/"u"/" dt"/"td".
648+ r_idx_type, c_idx_type - "i"/"f"/"s"/"dt"/"td".
655649 If idx_type is not None, `idx_nlevels` must be 1.
656650 "i"/"f" creates an integer/float index,
657- "s"/"u" creates a string/unicode index
651+ "s" creates a string index
658652 "dt" create a datetime index.
659653 "td" create a timedelta index.
660654
@@ -689,10 +683,10 @@ def makeCustomDataframe(
689683 assert c_idx_nlevels > 0
690684 assert r_idx_nlevels > 0
691685 assert r_idx_type is None or (
692- r_idx_type in ("i" , "f" , "s" , "u" , " dt" , "p" , "td" ) and r_idx_nlevels == 1
686+ r_idx_type in ("i" , "f" , "s" , "dt" , "p" , "td" ) and r_idx_nlevels == 1
693687 )
694688 assert c_idx_type is None or (
695- c_idx_type in ("i" , "f" , "s" , "u" , " dt" , "p" , "td" ) and c_idx_nlevels == 1
689+ c_idx_type in ("i" , "f" , "s" , "dt" , "p" , "td" ) and c_idx_nlevels == 1
696690 )
697691
698692 columns = makeCustomIndex (
0 commit comments