Shorter syntax for selecting data and expression evaluation (proposal) #18077
Labels
Duplicate Report
Duplicate issue or pull request
Enhancement
Needs Discussion
Requires discussion from core team before further action
Summary:
When we select data in pandas dataframe, which has long name, the code becomes bulky. For example:
I'd like to propose a way to write this expression in more compact form. We could use some reserved name as a substitution for dataframe :
The other issue when it may come useful is when we apply operations to columns:
This can come very handy when we apply the operations to the DataFrame as a chain:
I wrote a proof-of-concept module which make pandas capable of such syntax (via monkey patching): https://github.com/lpenguin/pandas-query
The text was updated successfully, but these errors were encountered: