Autocomplete Pandas DataFrame columns using dot-access #2718
Replies: 7 comments
-
Hey @AllanLeanderRostockHansen, Thanks for the suggestion! We are currently investigating this enhancement. |
Beta Was this translation helpful? Give feedback.
-
I second this, also when using "just the brackets" (pd.['name']) or pd.loc['name'] |
Beta Was this translation helpful? Give feedback.
-
The same issue apply to the omegaconf lib that provides the Omegaconf object which is a dict like object where keys can be accessed by dots similar to pandas dataframe. |
Beta Was this translation helpful? Give feedback.
-
This would be really awesome. See my related SO question which got some traction and has some relevant materials: |
Beta Was this translation helpful? Give feedback.
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
-
Any updates on this enhancement? I would find this very useful, too! |
Beta Was this translation helpful? Give feedback.
-
Would be nice for |
Beta Was this translation helpful? Give feedback.
-
When working with Pandas' DataFrames, single columns can be accessed using a dot, just like normal object properties.
The two lines above return the same data, but the first way is faster to write, and when using a Jupyter Lab notebook, autocompletion are provided for the column names and the methods and properties pertaining to the dot-selected column... it would be awesome if PyLance could do the same thing!
Beta Was this translation helpful? Give feedback.
All reactions