-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
FIX? df.__repr__ takes for ever with big data #3337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
see #3326 (comment) In the meantime, Thanks for reporting it, wil leave open till it's sorted. |
Can you provide a testcase for the docstring issue you mention? that's new. |
Thanks for your quick reply. Unfortunately I cannot give you a pure Python example as DataFrame instances don't employ But doing |
The IPython docstring problem seems to be part of the same issue, so |
Yes, makes sense. Just out of curiosity, wouldn't it be more consistent with other scientific / data analysis packages in Python to have non-empty .doc attributes? Or is this already being addressed somewhere? (sorry, I'm quite new to tracking the dev version of pandas and it's not so easy to get an overview on the open issues) |
I guess we all use ?? rather then doc , and IPython context help finds Sure. PR welcome. |
I agree, neither did I. When using the debugger however, IPython features aren't available and: print foo.doc is a helpful idiom.
ok |
@y-p I will look for this 'issue' in the entire library. where ever I see pep8 violations I also would address those. (?) |
Have a read on |
I just found that many violations are systematic and rather appear as On Sat, Apr 13, 2013 at 3:01 PM, y-p [email protected] wrote:
|
@y-p I always feel like a PEP8 storm... :) |
I guess it's not bad to hit the 'reset' button once per release, but more then that |
After taking a tour I've learned ended up wondering about a few things. Wdyt? |
So CONTRIBUTING.md didn't convince you. oh well. :) |
Admittedly not, was more of a deterrent to me ;-) |
(with regard to pep8 interventions) |
Btw. a few exceptions to pep8 which seem to have the status of a local pandas convention are:
see e. g. : https://github.com/pydata/pandas/blob/master/pandas/core/frame.py#L558
e. g. https://github.com/pydata/pandas/blob/master/pandas/core/frame.py#L840 These patterns seem to emerge from time to time, but too frequently to look like unwanted. Without complicating things one could address this CONTRIBUTING.md, given there is exceptions one likes to keep un-pep8-ted. |
The DataFrame repr behavior is now such that, conscise formats are only used in interactive mode (see also #3326, discussion not yet closed). Interactive mode can be enforced by using
|
I really don't think the change in behaviour makes sense. Even if it were, it's now established behaviour so this change will break people's scripts.
|
Status? |
broken. |
fixed by b9fa04a |
Hi all,
after having updated my local branch with the current dev master ( pd.version == '0.11.0rc1' -- compiling under Mac OS 10.8 went smoothly) some of my scripts in which I handle large data frames (2.6 million rows, 10 columns) stopped working.
It turned out that accessing the df's repr method but also looking up docstrings seems to make ipython unresponsive and creates the impression as if it takes forever.
This little snippet reproduces the error with fake data ('tested' with EPD Python and IPython 7.2 (32-bit)):
Can anyone confirm this?
It must have been some of the more recent changes as I did not have trouble with this earlier.
Any pointers and comments are highly welcome.
Cheers,
Denis
The text was updated successfully, but these errors were encountered: