Skip to content

Commit 4d5ca5c

Browse files
committedDec 6, 2013
DOC: minor changes in .apply section
1 parent 5109712 commit 4d5ca5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎doc/source/basics.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,12 +557,11 @@ will either be of lower dimension or the same dimension.
557557
about a data set. For example, suppose we wanted to extract the date where the
558558
maximum value for each column occurred:
559559

560-
561560
.. ipython:: python
562561
563562
tsdf = DataFrame(randn(1000, 3), columns=['A', 'B', 'C'],
564563
index=date_range('1/1/2000', periods=1000))
565-
tsdf.apply(lambda x: x[x.idxmax()])
564+
tsdf.apply(lambda x: x.idxmax())
566565
567566
You may also pass additional arguments and keyword arguments to the ``apply``
568567
method. For instance, consider the following function you would like to apply:

0 commit comments

Comments
 (0)
Please sign in to comment.