@@ -2268,15 +2268,15 @@ def is_boolean(self) -> bool:
2268
2268
Examples
2269
2269
--------
2270
2270
>>> idx = pd.Index([True, False, True])
2271
- >>> idx.is_boolean()
2271
+ >>> idx.is_boolean() # doctest: +SKIP
2272
2272
True
2273
2273
2274
2274
>>> idx = pd.Index(["True", "False", "True"])
2275
- >>> idx.is_boolean()
2275
+ >>> idx.is_boolean() # doctest: +SKIP
2276
2276
False
2277
2277
2278
2278
>>> idx = pd.Index([True, False, "True"])
2279
- >>> idx.is_boolean()
2279
+ >>> idx.is_boolean() # doctest: +SKIP
2280
2280
False
2281
2281
"""
2282
2282
warnings .warn (
@@ -2312,15 +2312,15 @@ def is_integer(self) -> bool:
2312
2312
Examples
2313
2313
--------
2314
2314
>>> idx = pd.Index([1, 2, 3, 4])
2315
- >>> idx.is_integer()
2315
+ >>> idx.is_integer() # doctest: +SKIP
2316
2316
True
2317
2317
2318
2318
>>> idx = pd.Index([1.0, 2.0, 3.0, 4.0])
2319
- >>> idx.is_integer()
2319
+ >>> idx.is_integer() # doctest: +SKIP
2320
2320
False
2321
2321
2322
2322
>>> idx = pd.Index(["Apple", "Mango", "Watermelon"])
2323
- >>> idx.is_integer()
2323
+ >>> idx.is_integer() # doctest: +SKIP
2324
2324
False
2325
2325
"""
2326
2326
warnings .warn (
@@ -2360,19 +2360,19 @@ def is_floating(self) -> bool:
2360
2360
Examples
2361
2361
--------
2362
2362
>>> idx = pd.Index([1.0, 2.0, 3.0, 4.0])
2363
- >>> idx.is_floating()
2363
+ >>> idx.is_floating() # doctest: +SKIP
2364
2364
True
2365
2365
2366
2366
>>> idx = pd.Index([1.0, 2.0, np.nan, 4.0])
2367
- >>> idx.is_floating()
2367
+ >>> idx.is_floating() # doctest: +SKIP
2368
2368
True
2369
2369
2370
2370
>>> idx = pd.Index([1, 2, 3, 4, np.nan])
2371
- >>> idx.is_floating()
2371
+ >>> idx.is_floating() # doctest: +SKIP
2372
2372
True
2373
2373
2374
2374
>>> idx = pd.Index([1, 2, 3, 4])
2375
- >>> idx.is_floating()
2375
+ >>> idx.is_floating() # doctest: +SKIP
2376
2376
False
2377
2377
"""
2378
2378
warnings .warn (
@@ -2408,23 +2408,23 @@ def is_numeric(self) -> bool:
2408
2408
Examples
2409
2409
--------
2410
2410
>>> idx = pd.Index([1.0, 2.0, 3.0, 4.0])
2411
- >>> idx.is_numeric()
2411
+ >>> idx.is_numeric() # doctest: +SKIP
2412
2412
True
2413
2413
2414
2414
>>> idx = pd.Index([1, 2, 3, 4.0])
2415
- >>> idx.is_numeric()
2415
+ >>> idx.is_numeric() # doctest: +SKIP
2416
2416
True
2417
2417
2418
2418
>>> idx = pd.Index([1, 2, 3, 4])
2419
- >>> idx.is_numeric()
2419
+ >>> idx.is_numeric() # doctest: +SKIP
2420
2420
True
2421
2421
2422
2422
>>> idx = pd.Index([1, 2, 3, 4.0, np.nan])
2423
- >>> idx.is_numeric()
2423
+ >>> idx.is_numeric() # doctest: +SKIP
2424
2424
True
2425
2425
2426
2426
>>> idx = pd.Index([1, 2, 3, 4.0, np.nan, "Apple"])
2427
- >>> idx.is_numeric()
2427
+ >>> idx.is_numeric() # doctest: +SKIP
2428
2428
False
2429
2429
"""
2430
2430
warnings .warn (
@@ -2460,20 +2460,20 @@ def is_object(self) -> bool:
2460
2460
Examples
2461
2461
--------
2462
2462
>>> idx = pd.Index(["Apple", "Mango", "Watermelon"])
2463
- >>> idx.is_object()
2463
+ >>> idx.is_object() # doctest: +SKIP
2464
2464
True
2465
2465
2466
2466
>>> idx = pd.Index(["Apple", "Mango", 2.0])
2467
- >>> idx.is_object()
2467
+ >>> idx.is_object() # doctest: +SKIP
2468
2468
True
2469
2469
2470
2470
>>> idx = pd.Index(["Watermelon", "Orange", "Apple",
2471
2471
... "Watermelon"]).astype("category")
2472
- >>> idx.is_object()
2472
+ >>> idx.is_object() # doctest: +SKIP
2473
2473
False
2474
2474
2475
2475
>>> idx = pd.Index([1.0, 2.0, 3.0, 4.0])
2476
- >>> idx.is_object()
2476
+ >>> idx.is_object() # doctest: +SKIP
2477
2477
False
2478
2478
"""
2479
2479
warnings .warn (
@@ -2511,11 +2511,11 @@ def is_categorical(self) -> bool:
2511
2511
--------
2512
2512
>>> idx = pd.Index(["Watermelon", "Orange", "Apple",
2513
2513
... "Watermelon"]).astype("category")
2514
- >>> idx.is_categorical()
2514
+ >>> idx.is_categorical() # doctest: +SKIP
2515
2515
True
2516
2516
2517
2517
>>> idx = pd.Index([1, 3, 5, 7])
2518
- >>> idx.is_categorical()
2518
+ >>> idx.is_categorical() # doctest: +SKIP
2519
2519
False
2520
2520
2521
2521
>>> s = pd.Series(["Peter", "Victor", "Elisabeth", "Mar"])
@@ -2525,7 +2525,7 @@ def is_categorical(self) -> bool:
2525
2525
2 Elisabeth
2526
2526
3 Mar
2527
2527
dtype: object
2528
- >>> s.index.is_categorical()
2528
+ >>> s.index.is_categorical() # doctest: +SKIP
2529
2529
False
2530
2530
"""
2531
2531
warnings .warn (
@@ -2564,11 +2564,11 @@ def is_interval(self) -> bool:
2564
2564
--------
2565
2565
>>> idx = pd.Index([pd.Interval(left=0, right=5),
2566
2566
... pd.Interval(left=5, right=10)])
2567
- >>> idx.is_interval()
2567
+ >>> idx.is_interval() # doctest: +SKIP
2568
2568
True
2569
2569
2570
2570
>>> idx = pd.Index([1, 3, 5, 7])
2571
- >>> idx.is_interval()
2571
+ >>> idx.is_interval() # doctest: +SKIP
2572
2572
False
2573
2573
"""
2574
2574
warnings .warn (
0 commit comments