Submitted by popcornn1 t3_ydw9wv in MachineLearning
SAint7579 t1_itvint1 wrote
Pandas .apply() and .to_datetime(). Pandas as a whole is a work of art!
-xylon t1_itycq7h wrote
.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