QST: Comments and feedback on rolling own dataframe functionality and syntax?
- [x] I have searched the [[pandas] tag](https://stackoverflow.com/questions/tagged/pandas) on StackOverflow for similar questions.

- [ ] I have asked my usage related question on [StackOverflow](https://stackoverflow.com).

---

#### Question about pandas

I want to roll my own dataframe functionality and syntax. Below is an example with a ternary-like operator  

**Example A:**

Let's say I want to set ‘row_A’ equal to 5 if ‘row_B’ is 10.

Right now, this has to be written like this:

`df.loc[df.row_1 == ‘10’, 'row_1'] = 5
` 

But I want this to work:

`
df.row_A = 5 if row_B = 10
`

My question is, is it feasible possible to add / overload the functionality implied? Has anyone tried this?

Example A above would just be the beginning. 

While subjective, I think this deals with a large class of "not quite" esoteric operations, that are in fact arcane and esoteric to execute concisely in Pandas. 

Note that I’m in principle happy to share / learn / complement / accept someone else's implementation too. 

Please let me know if this is insanity.

