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?

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: How can I get/save Pandas DataFrame help content?
Date 2015-12-17 14:30 +1100
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>

Show all headers | 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