7 ms·
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 ha
by asdfgeoff 5y 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?