@@ -680,23 +680,6 @@ def _dtype_to_subclass(cls, dtype: DtypeObj):
680680 See each method's docstring.
681681 """
682682
683- @property
684- def asi8 (self ):
685- """
686- Integer representation of the values.
687-
688- Returns
689- -------
690- ndarray
691- An ndarray with int64 dtype.
692- """
693- warnings .warn (
694- "Index.asi8 is deprecated and will be removed in a future version." ,
695- FutureWarning ,
696- stacklevel = find_stack_level (),
697- )
698- return None
699-
700683 @classmethod
701684 def _simple_new (cls : type [_IndexT ], values , name : Hashable = None ) -> _IndexT :
702685 """
@@ -2451,7 +2434,6 @@ def is_boolean(self) -> bool:
24512434 is_object : Check if the Index is of the object dtype.
24522435 is_categorical : Check if the Index holds categorical data.
24532436 is_interval : Check if the Index holds Interval objects.
2454- is_mixed : Check if the Index holds data with mixed data types.
24552437
24562438 Examples
24572439 --------
@@ -2487,7 +2469,6 @@ def is_integer(self) -> bool:
24872469 is_object : Check if the Index is of the object dtype.
24882470 is_categorical : Check if the Index holds categorical data.
24892471 is_interval : Check if the Index holds Interval objects.
2490- is_mixed : Check if the Index holds data with mixed data types.
24912472
24922473 Examples
24932474 --------
@@ -2527,7 +2508,6 @@ def is_floating(self) -> bool:
25272508 is_object : Check if the Index is of the object dtype.
25282509 is_categorical : Check if the Index holds categorical data.
25292510 is_interval : Check if the Index holds Interval objects.
2530- is_mixed : Check if the Index holds data with mixed data types.
25312511
25322512 Examples
25332513 --------
@@ -2567,7 +2547,6 @@ def is_numeric(self) -> bool:
25672547 is_object : Check if the Index is of the object dtype.
25682548 is_categorical : Check if the Index holds categorical data.
25692549 is_interval : Check if the Index holds Interval objects.
2570- is_mixed : Check if the Index holds data with mixed data types.
25712550
25722551 Examples
25732552 --------
@@ -2611,7 +2590,6 @@ def is_object(self) -> bool:
26112590 is_numeric : Check if the Index only consists of numeric data.
26122591 is_categorical : Check if the Index holds categorical data.
26132592 is_interval : Check if the Index holds Interval objects.
2614- is_mixed : Check if the Index holds data with mixed data types.
26152593
26162594 Examples
26172595 --------
@@ -2653,7 +2631,6 @@ def is_categorical(self) -> bool:
26532631 is_numeric : Check if the Index only consists of numeric data.
26542632 is_object : Check if the Index is of the object dtype.
26552633 is_interval : Check if the Index holds Interval objects.
2656- is_mixed : Check if the Index holds data with mixed data types.
26572634
26582635 Examples
26592636 --------
@@ -2697,7 +2674,6 @@ def is_interval(self) -> bool:
26972674 is_numeric : Check if the Index only consists of numeric data.
26982675 is_object : Check if the Index is of the object dtype.
26992676 is_categorical : Check if the Index holds categorical data.
2700- is_mixed : Check if the Index holds data with mixed data types.
27012677
27022678 Examples
27032679 --------
@@ -2712,44 +2688,6 @@ def is_interval(self) -> bool:
27122688 """
27132689 return self .inferred_type in ["interval" ]
27142690
2715- @final
2716- def is_mixed (self ) -> bool :
2717- """
2718- Check if the Index holds data with mixed data types.
2719-
2720- Returns
2721- -------
2722- bool
2723- Whether or not the Index holds data with mixed data types.
2724-
2725- See Also
2726- --------
2727- is_boolean : Check if the Index only consists of booleans.
2728- is_integer : Check if the Index only consists of integers.
2729- is_floating : Check if the Index is a floating type.
2730- is_numeric : Check if the Index only consists of numeric data.
2731- is_object : Check if the Index is of the object dtype.
2732- is_categorical : Check if the Index holds categorical data.
2733- is_interval : Check if the Index holds Interval objects.
2734-
2735- Examples
2736- --------
2737- >>> idx = pd.Index(['a', np.nan, 'b'])
2738- >>> idx.is_mixed()
2739- True
2740-
2741- >>> idx = pd.Index([1.0, 2.0, 3.0, 5.0])
2742- >>> idx.is_mixed()
2743- False
2744- """
2745- warnings .warn (
2746- "Index.is_mixed is deprecated and will be removed in a future version. "
2747- "Check index.inferred_type directly instead." ,
2748- FutureWarning ,
2749- stacklevel = find_stack_level (),
2750- )
2751- return self .inferred_type in ["mixed" ]
2752-
27532691 @final
27542692 def holds_integer (self ) -> bool :
27552693 """
@@ -5312,18 +5250,6 @@ def _is_memory_usage_qualified(self) -> bool:
53125250 """
53135251 return self .is_object ()
53145252
5315- def is_type_compatible (self , kind : str_t ) -> bool :
5316- """
5317- Whether the index type is compatible with the provided type.
5318- """
5319- warnings .warn (
5320- "Index.is_type_compatible is deprecated and will be removed in a "
5321- "future version." ,
5322- FutureWarning ,
5323- stacklevel = find_stack_level (),
5324- )
5325- return kind == self .inferred_type
5326-
53275253 def __contains__ (self , key : Any ) -> bool :
53285254 """
53295255 Return a boolean indicating whether the provided key is in the index.
0 commit comments