2 Comments
Apr 27, 2023Liked by Avi Chawla

Big fan of method chaining. To achieve the same level of readability as the inplace=True, usually nest the chain in parentheses.

i.e.

(

df

.reset_index()

.fillna(0)

.drop_duplicates()

)

Expand full comment