@@ -429,172 +429,6 @@ class Series(IndexOpsMixin[S1], NDFrame):
429
429
) -> Series : ...
430
430
@property
431
431
def hasnans (self ) -> bool : ...
432
- @overload
433
- def div (
434
- self : Series [Never ],
435
- other : Path | Scalar | _ListLike | Series ,
436
- level : Level | None = ...,
437
- fill_value : float | None = ...,
438
- axis : AxisIndex = ...,
439
- ) -> Series : ...
440
- @overload
441
- def div (
442
- self ,
443
- other : Series [Never ],
444
- level : Level | None = ...,
445
- fill_value : float | None = ...,
446
- axis : AxisIndex = ...,
447
- ) -> Series : ...
448
- @overload
449
- def div (
450
- self : Series [int ],
451
- other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float | Series [int ],
452
- level : Level | None = ...,
453
- fill_value : float | None = ...,
454
- axis : AxisIndex = ...,
455
- ) -> Series [float ]: ...
456
- @overload
457
- def div (
458
- self : Series [int ],
459
- other : _T_COMPLEX | Sequence [_T_COMPLEX ] | Series [_T_COMPLEX ],
460
- level : Level | None = ...,
461
- fill_value : float | None = ...,
462
- axis : AxisIndex = ...,
463
- ) -> Series [_T_COMPLEX ]: ...
464
- @overload
465
- def div (
466
- self : Series [int ],
467
- other : np_ndarray_complex ,
468
- level : Level | None = ...,
469
- fill_value : float | None = ...,
470
- axis : AxisIndex = ...,
471
- ) -> Series [complex ]: ...
472
- @overload
473
- def div (
474
- self : Series [float ],
475
- other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float | Series [int ],
476
- level : Level | None = ...,
477
- fill_value : float | None = ...,
478
- axis : AxisIndex = ...,
479
- ) -> Series [float ]: ...
480
- @overload
481
- def div (
482
- self : Series [float ],
483
- other : _T_COMPLEX | Sequence [_T_COMPLEX ] | Series [_T_COMPLEX ],
484
- level : Level | None = ...,
485
- fill_value : float | None = ...,
486
- axis : AxisIndex = ...,
487
- ) -> Series [_T_COMPLEX ]: ...
488
- @overload
489
- def div (
490
- self : Series [float ],
491
- other : np_ndarray_complex ,
492
- level : Level | None = ...,
493
- fill_value : float | None = ...,
494
- axis : AxisIndex = ...,
495
- ) -> Series [complex ]: ...
496
- @overload
497
- def div (
498
- self : Series [complex ],
499
- other : (
500
- _T_COMPLEX
501
- | Sequence [_T_COMPLEX ]
502
- | np_ndarray_anyint
503
- | np_ndarray_float
504
- | np_ndarray_complex
505
- | Series [_T_COMPLEX ]
506
- ),
507
- level : Level | None = ...,
508
- fill_value : float | None = ...,
509
- axis : AxisIndex = ...,
510
- ) -> Series [complex ]: ...
511
- @overload
512
- def rdiv (
513
- self : Series [Never ],
514
- other : Path | Scalar | _ListLike | Series ,
515
- level : Level | None = ...,
516
- fill_value : float | None = ...,
517
- axis : AxisIndex = ...,
518
- ) -> Series : ...
519
- @overload
520
- def rdiv (
521
- self ,
522
- other : Series [Never ],
523
- level : Level | None = ...,
524
- fill_value : float | None = ...,
525
- axis : AxisIndex = ...,
526
- ) -> Series : ...
527
- @overload
528
- def rdiv (
529
- self : Series [int ],
530
- other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float | Series [int ],
531
- level : Level | None = ...,
532
- fill_value : float | None = ...,
533
- axis : AxisIndex = ...,
534
- ) -> Series [float ]: ...
535
- @overload
536
- def rdiv (
537
- self : Series [int ],
538
- other : _T_COMPLEX | Sequence [_T_COMPLEX ] | Series [_T_COMPLEX ],
539
- level : Level | None = ...,
540
- fill_value : float | None = ...,
541
- axis : AxisIndex = ...,
542
- ) -> Series [_T_COMPLEX ]: ...
543
- @overload
544
- def rdiv (
545
- self : Series [int ],
546
- other : np_ndarray_complex ,
547
- level : Level | None = ...,
548
- fill_value : float | None = ...,
549
- axis : AxisIndex = ...,
550
- ) -> Series [complex ]: ...
551
- @overload
552
- def rdiv (
553
- self : Series [float ],
554
- other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float | Series [int ],
555
- level : Level | None = ...,
556
- fill_value : float | None = ...,
557
- axis : AxisIndex = ...,
558
- ) -> Series [float ]: ...
559
- @overload
560
- def rdiv (
561
- self : Series [float ],
562
- other : _T_COMPLEX | Sequence [_T_COMPLEX ] | Series [_T_COMPLEX ],
563
- level : Level | None = ...,
564
- fill_value : float | None = ...,
565
- axis : AxisIndex = ...,
566
- ) -> Series [_T_COMPLEX ]: ...
567
- @overload
568
- def rdiv (
569
- self : Series [float ],
570
- other : np_ndarray_complex ,
571
- level : Level | None = ...,
572
- fill_value : float | None = ...,
573
- axis : AxisIndex = ...,
574
- ) -> Series [complex ]: ...
575
- @overload
576
- def rdiv (
577
- self : Series [complex ],
578
- other : (
579
- _T_COMPLEX
580
- | Sequence [_T_COMPLEX ]
581
- | np_ndarray_anyint
582
- | np_ndarray_float
583
- | np_ndarray_complex
584
- | Series [_T_COMPLEX ]
585
- ),
586
- level : Level | None = ...,
587
- fill_value : float | None = ...,
588
- axis : AxisIndex = ...,
589
- ) -> Series [complex ]: ...
590
- @overload
591
- def rdiv (
592
- self ,
593
- other : Path ,
594
- level : Level | None = ...,
595
- fill_value : float | None = ...,
596
- axis : AxisIndex = ...,
597
- ) -> Series : ...
598
432
@property
599
433
def dtype (self ) -> DtypeObj : ...
600
434
@property
@@ -2604,6 +2438,93 @@ class Series(IndexOpsMixin[S1], NDFrame):
2604
2438
fill_value : float | None = ...,
2605
2439
axis : AxisIndex = ...,
2606
2440
) -> Series : ...
2441
+ @overload
2442
+ def rdiv (
2443
+ self : Series [Never ],
2444
+ other : Path | Scalar | _ListLike | Series ,
2445
+ level : Level | None = ...,
2446
+ fill_value : float | None = ...,
2447
+ axis : AxisIndex = ...,
2448
+ ) -> Series : ...
2449
+ @overload
2450
+ def rdiv (
2451
+ self ,
2452
+ other : Series [Never ],
2453
+ level : Level | None = ...,
2454
+ fill_value : float | None = ...,
2455
+ axis : AxisIndex = ...,
2456
+ ) -> Series : ...
2457
+ @overload
2458
+ def rdiv (
2459
+ self : Series [int ],
2460
+ other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float | Series [int ],
2461
+ level : Level | None = ...,
2462
+ fill_value : float | None = ...,
2463
+ axis : AxisIndex = ...,
2464
+ ) -> Series [float ]: ...
2465
+ @overload
2466
+ def rdiv (
2467
+ self : Series [int ],
2468
+ other : _T_COMPLEX | Sequence [_T_COMPLEX ] | Series [_T_COMPLEX ],
2469
+ level : Level | None = ...,
2470
+ fill_value : float | None = ...,
2471
+ axis : AxisIndex = ...,
2472
+ ) -> Series [_T_COMPLEX ]: ...
2473
+ @overload
2474
+ def rdiv (
2475
+ self : Series [int ],
2476
+ other : np_ndarray_complex ,
2477
+ level : Level | None = ...,
2478
+ fill_value : float | None = ...,
2479
+ axis : AxisIndex = ...,
2480
+ ) -> Series [complex ]: ...
2481
+ @overload
2482
+ def rdiv (
2483
+ self : Series [float ],
2484
+ other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float | Series [int ],
2485
+ level : Level | None = ...,
2486
+ fill_value : float | None = ...,
2487
+ axis : AxisIndex = ...,
2488
+ ) -> Series [float ]: ...
2489
+ @overload
2490
+ def rdiv (
2491
+ self : Series [float ],
2492
+ other : _T_COMPLEX | Sequence [_T_COMPLEX ] | Series [_T_COMPLEX ],
2493
+ level : Level | None = ...,
2494
+ fill_value : float | None = ...,
2495
+ axis : AxisIndex = ...,
2496
+ ) -> Series [_T_COMPLEX ]: ...
2497
+ @overload
2498
+ def rdiv (
2499
+ self : Series [float ],
2500
+ other : np_ndarray_complex ,
2501
+ level : Level | None = ...,
2502
+ fill_value : float | None = ...,
2503
+ axis : AxisIndex = ...,
2504
+ ) -> Series [complex ]: ...
2505
+ @overload
2506
+ def rdiv (
2507
+ self : Series [complex ],
2508
+ other : (
2509
+ _T_COMPLEX
2510
+ | Sequence [_T_COMPLEX ]
2511
+ | np_ndarray_anyint
2512
+ | np_ndarray_float
2513
+ | np_ndarray_complex
2514
+ | Series [_T_COMPLEX ]
2515
+ ),
2516
+ level : Level | None = ...,
2517
+ fill_value : float | None = ...,
2518
+ axis : AxisIndex = ...,
2519
+ ) -> Series [complex ]: ...
2520
+ @overload
2521
+ def rdiv (
2522
+ self ,
2523
+ other : Path ,
2524
+ level : Level | None = ...,
2525
+ fill_value : float | None = ...,
2526
+ axis : AxisIndex = ...,
2527
+ ) -> Series : ...
2607
2528
def sem (
2608
2529
self ,
2609
2530
axis : AxisIndex | None = ...,
@@ -2758,6 +2679,85 @@ class Series(IndexOpsMixin[S1], NDFrame):
2758
2679
fill_value : float | None = ...,
2759
2680
axis : AxisIndex = ...,
2760
2681
) -> Series [complex ]: ...
2682
+ @overload
2683
+ def div (
2684
+ self : Series [Never ],
2685
+ other : Path | Scalar | _ListLike | Series ,
2686
+ level : Level | None = ...,
2687
+ fill_value : float | None = ...,
2688
+ axis : AxisIndex = ...,
2689
+ ) -> Series : ...
2690
+ @overload
2691
+ def div (
2692
+ self ,
2693
+ other : Series [Never ],
2694
+ level : Level | None = ...,
2695
+ fill_value : float | None = ...,
2696
+ axis : AxisIndex = ...,
2697
+ ) -> Series : ...
2698
+ @overload
2699
+ def div (
2700
+ self : Series [int ],
2701
+ other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float | Series [int ],
2702
+ level : Level | None = ...,
2703
+ fill_value : float | None = ...,
2704
+ axis : AxisIndex = ...,
2705
+ ) -> Series [float ]: ...
2706
+ @overload
2707
+ def div (
2708
+ self : Series [int ],
2709
+ other : _T_COMPLEX | Sequence [_T_COMPLEX ] | Series [_T_COMPLEX ],
2710
+ level : Level | None = ...,
2711
+ fill_value : float | None = ...,
2712
+ axis : AxisIndex = ...,
2713
+ ) -> Series [_T_COMPLEX ]: ...
2714
+ @overload
2715
+ def div (
2716
+ self : Series [int ],
2717
+ other : np_ndarray_complex ,
2718
+ level : Level | None = ...,
2719
+ fill_value : float | None = ...,
2720
+ axis : AxisIndex = ...,
2721
+ ) -> Series [complex ]: ...
2722
+ @overload
2723
+ def div (
2724
+ self : Series [float ],
2725
+ other : int | Sequence [int ] | np_ndarray_anyint | np_ndarray_float | Series [int ],
2726
+ level : Level | None = ...,
2727
+ fill_value : float | None = ...,
2728
+ axis : AxisIndex = ...,
2729
+ ) -> Series [float ]: ...
2730
+ @overload
2731
+ def div (
2732
+ self : Series [float ],
2733
+ other : _T_COMPLEX | Sequence [_T_COMPLEX ] | Series [_T_COMPLEX ],
2734
+ level : Level | None = ...,
2735
+ fill_value : float | None = ...,
2736
+ axis : AxisIndex = ...,
2737
+ ) -> Series [_T_COMPLEX ]: ...
2738
+ @overload
2739
+ def div (
2740
+ self : Series [float ],
2741
+ other : np_ndarray_complex ,
2742
+ level : Level | None = ...,
2743
+ fill_value : float | None = ...,
2744
+ axis : AxisIndex = ...,
2745
+ ) -> Series [complex ]: ...
2746
+ @overload
2747
+ def div (
2748
+ self : Series [complex ],
2749
+ other : (
2750
+ _T_COMPLEX
2751
+ | Sequence [_T_COMPLEX ]
2752
+ | np_ndarray_anyint
2753
+ | np_ndarray_float
2754
+ | np_ndarray_complex
2755
+ | Series [_T_COMPLEX ]
2756
+ ),
2757
+ level : Level | None = ...,
2758
+ fill_value : float | None = ...,
2759
+ axis : AxisIndex = ...,
2760
+ ) -> Series [complex ]: ...
2761
2761
def var (
2762
2762
self ,
2763
2763
axis : AxisIndex | None = ...,
0 commit comments