top | item 29470570

(no title)

asdfgeoff | 4 years ago

Awesome explanation. When writing pandas code, I tend to make heavy use of method-chaining and lambda functions to achieve something along these lines. But I have never been able to articulate why.

  df.assign(COLUMN_C=lambda x: x['COLUMN_A'] + x['COLUMN_B'])
But looking solely at the wikipedia page for dependency inversion principle… I'm not sure I would have connected the dots here myself.

Can you recommend any noteworthy resources for a data scientist who is interested in learning more about software engineering patterns like this?

discuss

order

No comments yet.