From 006d50c883f894bdc075c618a265929069623daf Mon Sep 17 00:00:00 2001 From: adrianliaw Date: Sun, 9 Jul 2017 15:17:53 +0800 Subject: [PATCH] DOC: Fix missing parentheses in documentation --- doc/source/groupby.rst | 2 +- doc/source/io.rst | 4 ++-- doc/source/whatsnew/v0.13.0.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 61f43146aba85..937d682d238b3 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -933,7 +933,7 @@ The dimension of the returned result can also change: d = pd.DataFrame({"a":["x", "y"], "b":[1,2]}) def identity(df): - print df + print(df) return df d.groupby("a").apply(identity) diff --git a/doc/source/io.rst b/doc/source/io.rst index e1e82f686f182..9bf84e5419ffa 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -3194,7 +3194,7 @@ You can pass ``iterator=True`` to iterate over the unpacked results .. ipython:: python for o in pd.read_msgpack('foo.msg',iterator=True): - print o + print(o) You can pass ``append=True`` to the writer to append to an existing pack @@ -3912,7 +3912,7 @@ chunks. evens = [2,4,6,8,10] coordinates = store.select_as_coordinates('dfeq','number=evens') for c in chunks(coordinates, 2): - print store.select('dfeq',where=c) + print(store.select('dfeq',where=c)) Advanced Queries ++++++++++++++++ diff --git a/doc/source/whatsnew/v0.13.0.txt b/doc/source/whatsnew/v0.13.0.txt index 3347b05a5df37..f440be1ddd56e 100644 --- a/doc/source/whatsnew/v0.13.0.txt +++ b/doc/source/whatsnew/v0.13.0.txt @@ -790,7 +790,7 @@ Experimental .. ipython:: python for o in pd.read_msgpack('foo.msg',iterator=True): - print o + print(o) .. ipython:: python :suppress: