What is difference between "inplace = True" and "inplace = False?

 Both inplace= true and inplace = False are used to do some operation on the data but:

When inplace = True is used, it performs operation on data and nothing is returned.

df.some_operation(inplace=True)

When inplace=False is used, it performs operation on data and returns a new copy of data.

df = df.an_operation(inplace=False)

Comments

Popular posts from this blog

Project : Customer Churn (Customer Attrition)

Project: GIS with Folium

Project: Heartbeat computing