While working with pandas I find that some of the methods have inplace=True
For example.
df.drop(columns=["first", "last"], inplace=True)
Whereas some methods do not have this argument and we need to explicitly assign the result to a variable.
df = df.append(df2, ignore_index=True)
Is there any specific reason behind this? Can't we just have a uniform way of ensuring that the argument is present for all pandas methods? (as it removes the hassle of assigning it to another variable).
Any help is appreciated. Thank you.