Skip to content

Commit a5477b7

Browse files
adrianliawjreback
authored andcommitted
DOC: Fix missing parentheses in documentation (#16862)
1 parent 3be2de6 commit a5477b7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/source/groupby.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ The dimension of the returned result can also change:
933933
934934
d = pd.DataFrame({"a":["x", "y"], "b":[1,2]})
935935
def identity(df):
936-
print df
936+
print(df)
937937
return df
938938
939939
d.groupby("a").apply(identity)

doc/source/io.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -3194,7 +3194,7 @@ You can pass ``iterator=True`` to iterate over the unpacked results
31943194
.. ipython:: python
31953195
31963196
for o in pd.read_msgpack('foo.msg',iterator=True):
3197-
print o
3197+
print(o)
31983198
31993199
You can pass ``append=True`` to the writer to append to an existing pack
32003200

@@ -3912,7 +3912,7 @@ chunks.
39123912
evens = [2,4,6,8,10]
39133913
coordinates = store.select_as_coordinates('dfeq','number=evens')
39143914
for c in chunks(coordinates, 2):
3915-
print store.select('dfeq',where=c)
3915+
print(store.select('dfeq',where=c))
39163916
39173917
Advanced Queries
39183918
++++++++++++++++

doc/source/whatsnew/v0.13.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ Experimental
790790
.. ipython:: python
791791

792792
for o in pd.read_msgpack('foo.msg',iterator=True):
793-
print o
793+
print(o)
794794

795795
.. ipython:: python
796796
:suppress:

0 commit comments

Comments
 (0)