API: allow dependent assignment?
See original GitHub issueSince kwarg order will be guaranteed in python 3.6, we could allow this…though would only want to try with a 3.6+ version check, otherwise code could more or less randomly work/not work, depending on dict order.
In [44]: df = pd.DataFrame({'a': [1,2,3]})
In [45]: df.assign(b=1, c=lambda x: x['b'] * 2)
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (19 by maintainers)
Top Results From Across the Web
Completing Assignments Using API - What is Decisions?
This document demonstrates how to Call Internal Services via API Calls, to complete Assignments in Decisions. This is completed with the ...
Read more >Owners and Dependents - Kubernetes
Owners and Dependents. In Kubernetes, some objects are owners of other objects. For example, a ReplicaSet is the owner of a set of...
Read more >Is there a way to make one assignment dependent on...
Is there a way to engineer it so that a student cannot submit an assignment before another one is completed WITHOUT making them...
Read more >Assignments - Canvas LMS REST API Documentation
API for accessing assignment information. ... If included, only return certain assignments depending on due date and submission status. Allowed values: past ...
Read more >Use Project schedule APIs to perform operations with ...
Project task dependency records aren't updated. Instead, an old record can be deleted, and a new record can be created. Resource assignment, Yes ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think we should sort this out for 0.21. I propose
Maybe in the future, when there’s less 3.5 and lower code around, we can allow for dependent assignment.
I would also be comfortable just changing this for Python 3.6+. My guess is that there aren’t that many folks using Python 3.6 in production yet, so this will probably cause minimal issues.