Skip to content

Commit eb7bcf9

Browse files
author
y-p
committed
DOC: suppress warning in docs
1 parent 507d477 commit eb7bcf9

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

doc/source/dsintro.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,12 +490,7 @@ objects), and the DataFrame index also contains dates, the broadcasting will be
490490
column-wise:
491491

492492
.. ipython:: python
493-
:suppress:
494-
495-
import warnings
496-
warnings.filterwarnings("ignore",message='TimeSeries broadcasting',category=FutureWarning)
497-
498-
.. ipython:: python
493+
:okwarning:
499494
500495
index = date_range('1/1/2000', periods=8)
501496
df = DataFrame(randn(8, 3), index=index, columns=list('ABC'))

doc/source/v0.10.1.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,8 @@ Retrieving unique values in an indexable or data column.
6868
.. ipython:: python
6969
:okwarning:
7070

71-
import warnings
72-
with warnings.catch_warnings():
73-
warnings.simplefilter('ignore', category=UserWarning)
74-
store.unique('df','index')
75-
store.unique('df','string')
71+
store.unique('df','index')
72+
store.unique('df','string')
7673

7774
You can now store ``datetime64`` in data columns
7875

0 commit comments

Comments
 (0)