2 Comments

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

Totally, Jack!

Expand full comment