Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100555

Re: How can I get/save Pandas DataFrame help content?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: How can I get/save Pandas DataFrame help content?
Date Thu, 17 Dec 2015 14:30:37 +1100
Lines 32
Message-ID <mailman.30.1450323045.30845.python-list@python.org> (permalink)
References <9109f5a6-f6c7-4651-995e-2e8813c1f647@googlegroups.com> <mailman.29.1450320969.30845.python-list@python.org> <da9c3aff-6e54-4c78-9801-b3477adedf70@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de +9Lkslz2l+fVPHzN62rf+ghcZlTxT1zzWX0BVEHTUOGw==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'received:209.85.223': 0.03; 'method.': 0.05; 'wednesday,': 0.07; 'subject:help': 0.07; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; 'buffer,': 0.09; 'exceeds': 0.09; 'nameerror:': 0.09; 'python': 0.10; 'explicitly': 0.15; 'interpreter': 0.15; 'thu,': 0.15; '1:48': 0.16; 'file?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'last)': 0.16; 'nameerror': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; '(by': 0.22; 'defined': 0.23; 'dec': 0.23; 'tried': 0.24; '(most': 0.24; 'header:In-Reply-To:1': 0.24; 'linux': 0.26; 'chris': 0.26; 'message-id:@mail.gmail.com': 0.27; 'command-line': 0.29; 'subject:/': 0.30; 'that.': 0.30; 'december': 0.32; 'useful': 0.33; 'traceback': 0.33; 'similar': 0.33; 'running': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'i.e.': 0.35; 'robert': 0.35; 'should': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'display': 0.37; 'thanks': 0.37; 'received:209': 0.38; 'hi,': 0.38; 'save': 0.60; 'your': 0.60; 'default': 0.61; 'more': 0.63; 'cut': 0.67; 'subject:get': 0.81; 'chrisa': 0.84; 'confusion.': 0.84; 'subject:content': 0.84; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=1UrNYiKPAGINLj9LF3hcEYWIrZSDpMXQP0vvfKpFE9o=; b=cOH/mcQonB4rrFulzZ2sjSH42b33dkZ+7ZGfd6EAlfoCgw5nXLV1NzXRyEjPFoK3zm f74eFg93f+46LdsAJfcWvla6GYu2Wk8ePR5dlmHE3rof0IuBFx8AScCJJPuBS3bNb47S sEkth27GM+A0Amgezpjt75VNAe8c2wd70bKgPcFLiDo5wNZHHCpkjDFLyxFIK34qhH4a d1AhAXSOvAcStyF4IMmw/MPRLsLsdJ85t/YzZ1q3UbX6iqjy6jBk8BgLZIzU3Ug6VNZN XWvnBf/tizCrLXkALJNX4LXPtl+h9l2k8Li0drS9xqOd/zDuCNqN2K1YMnpWKolbtRy8 Xz3g==
X-Received by 10.107.150.82 with SMTP id y79mr10747137iod.31.1450323037428; Wed, 16 Dec 2015 19:30:37 -0800 (PST)
In-Reply-To <da9c3aff-6e54-4c78-9801-b3477adedf70@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100555

Show key headers only | View raw


On Thu, Dec 17, 2015 at 2:20 PM, Robert <rxjwg98@gmail.com> wrote:
> On Wednesday, December 16, 2015 at 9:56:23 PM UTC-5, Chris Angelico wrote:
>> On Thu, Dec 17, 2015 at 1:48 PM, Robert <com> wrote:
>> > Hi,
>> >
>> > When I use Enthought/Canopy, help(DataFrame) has so much content that it
>> > exceeds the display buffer, i.e. its head is cut off as I go up to see it.
>> > I would like to know whether there is a way similar to Linux redirection to
>> > save the help DataFrame content to a file?
>>
>> If you use command-line Python (by just running 'python' or 'python3'
>> in your shell), you should be able to use help() with a More pager.
>>
>> ChrisA
>
> Thanks for this useful idea.
> I have tried with:
>
> help(DataFrame) | more
> NameError                                 Traceback (most recent call last)
> <ipython-input-52-826956076b70> in <module>()
> ----> 1 help(DataFrame) | more
>
> NameError: name 'more' is not defined
> ////////////
> It is possible I misunderstand your method. Could you give me a little more
> description on it?

Sorry for the confusion. You don't need to explicitly request the
pager; the default interpreter configuration should include that.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How can I get/save Pandas DataFrame help content? Robert <rxjwg98@gmail.com> - 2015-12-16 18:48 -0800
  Re: How can I get/save Pandas DataFrame help content? Chris Angelico <rosuav@gmail.com> - 2015-12-17 13:56 +1100
    Re: How can I get/save Pandas DataFrame help content? Robert <rxjwg98@gmail.com> - 2015-12-16 19:20 -0800
      Re: How can I get/save Pandas DataFrame help content? Chris Angelico <rosuav@gmail.com> - 2015-12-17 14:30 +1100
  Re: How can I get/save Pandas DataFrame help content? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-12-17 15:09 +1100
    Re: How can I get/save Pandas DataFrame help content? Robert Kern <robert.kern@gmail.com> - 2015-12-17 15:15 +0000
  Re: How can I get/save Pandas DataFrame help content? Peter Otten <__peter__@web.de> - 2015-12-17 10:27 +0100

csiph-web