File tree 1 file changed +0
-25
lines changed
1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -663,31 +663,6 @@ row-wise. For example:
663
663
664
664
df - df.iloc[0 ]
665
665
666
- In the special case of working with time series data, if the DataFrame index
667
- contains dates, the broadcasting will be column-wise:
668
-
669
- .. ipython :: python
670
- :okwarning:
671
-
672
- index = pd.date_range(' 1/1/2000' , periods = 8 )
673
- df = pd.DataFrame(np.random.randn(8 , 3 ), index = index, columns = list (' ABC' ))
674
- df
675
- type (df[' A' ])
676
- df - df[' A' ]
677
-
678
- .. warning ::
679
-
680
- .. code-block :: python
681
-
682
- df - df[' A' ]
683
-
684
- is now deprecated and will be removed in a future release. The preferred way
685
- to replicate this behavior is
686
-
687
- .. code-block :: python
688
-
689
- df.sub(df[' A' ], axis = 0 )
690
-
691
666
For explicit control over the matching and broadcasting behavior, see the
692
667
section on :ref: `flexible binary operations <basics.binop >`.
693
668
You can’t perform that action at this time.
0 commit comments