Submitted by popcornn1 t3_ydw9wv in MachineLearning
-xylon t1_itycq7h wrote
Reply to comment by SAint7579 in [D] Python function that changed your life in regard to Machine Learning by popcornn1
.pipe() is another game changer, along with .assign().
I recently discovered you can pass callables to almost ANYTHING in pandas. Things like
df.assign(newcolumn= lambda df: ...
or better yet df[lambda x:....]
and df.loc[lambda x:]
.
Viewing a single comment thread. View all comments