Skip to content
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

No column suggestion in pandas methods #5436

Open
ntluong95 opened this issue Nov 21, 2024 · 3 comments
Open

No column suggestion in pandas methods #5436

ntluong95 opened this issue Nov 21, 2024 · 3 comments
Labels
area: completions Issues related to Completions enhancement New feature or request lang: python support
Milestone

Comments

@ntluong95
Copy link

System details:

Positron and OS details:

Positron Version: 2024.12.0 (system setup) build 41
Code - OSS Version: 1.93.0
Commit: 39536c2
Date: 2024-11-21T02:47:00.983Z
Electron: 30.4.0
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22621

Interpreter details:

R 4.4.2 or Python 3.12.6

Describe the issue:

A very important feature of an IDE is to suggest columns in a dataframe, so user don't need to type (slower, prone to typo). Currently Positron doesn't support it which I think we can improve the user experience. As an R user, I am very much looking for it. The feature has been implemented in DataSpell IDE

Image

Steps to reproduce the issue:

  1. Import any pandas dataframe
  2. Try to filter, query on the dataframe

Expected or desired behavior:

In filter method
Image

In query method

Image

@juliasilge juliasilge added enhancement New feature or request lang: python support area: completions Issues related to Completions labels Nov 21, 2024
@lbeiby
Copy link

lbeiby commented Nov 24, 2024

This feature is very much needed. In PyCharm/DataSpell, JetBrain they have implemented a runtime analysis, which allowing for column completion for a wide variety of dataframe like pandas, polars, pyspark

@juliasilge juliasilge added this to the Future milestone Nov 25, 2024
@seeM
Copy link
Contributor

seeM commented Jan 31, 2025

When implementing this, we might also be able to offer completing lists of columns via dict access e.g. df[[""]] (requested in #5413 (comment)).

@ntluong95
Copy link
Author

When implementing this, we might also be able to offer completing lists of columns via dict access e.g. df[[""]] (requested in #5413 (comment)).

That would be great. Column completion through dict access in pandas, or through pl.col(), or in query() method of Pandas is very much needed I guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: completions Issues related to Completions enhancement New feature or request lang: python support
Projects
None yet
Development

No branches or pull requests

4 participants