Skip to content

QST: Only the first 100 columns are suggested in tab completion #40938

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

Closed
TheDerivator opened this issue Apr 14, 2021 · 1 comment
Closed

QST: Only the first 100 columns are suggested in tab completion #40938

TheDerivator opened this issue Apr 14, 2021 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request

Comments

@TheDerivator
Copy link
Contributor

The [:100] in the following code implies that tab completion which relies on dir( ) will only consider the first 100 columns.

  • Is there a reason for the magic number? Why not remove it?
  • Alternatively, make it optional with something like pd.set_option('display.max_dir_items', None)?

Which is better?

for c in self.unique(level=0)[:100]

@TheDerivator TheDerivator changed the title Only the first 100 columns are suggested in tab completion QST: Only the first 100 columns are suggested in tab completion Apr 14, 2021
@mzeitlin11
Copy link
Member

Thanks for the report @TheDerivator! This issue has come up a few times (the reason for the magic number is performance-related). I agree that something like an option might make more sense - if you have interest in improving this, let's move the discussion to #37996, since it contains a few of the issues and comments that provide some more context

@mzeitlin11 mzeitlin11 added the Duplicate Report Duplicate issue or pull request label Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants