Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico 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: References: <9109f5a6-f6c7-4651-995e-2e8813c1f647@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de +9Lkslz2l+fVPHzN62rf+ghcZlTxT1zzWX0BVEHTUOGw== Return-Path: 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: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100555 On Thu, Dec 17, 2015 at 2:20 PM, Robert 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 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) > in () > ----> 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