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

0 votes
I want to know what is being returned as well as how the object is handled when "inplace=True" is passed vs. when "inplace=False".
Aug 7 in Python by Shabnam
• 920 points
280 views

1 answer to this question.

0 votes

Hi,

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)
answered Aug 9 by Taj
• 1,040 points

Related Questions In Python

0 votes
1 answer

What is the difference between list and tuple?

Lists are mutable(values can be changed) whereas ...READ MORE

answered May 4, 2018 in Python by aayushi
• 750 points
1,896 views
+1 vote
2 answers

What is the difference between classes and labels in machine learning?

Classes and Labels both are almost same things ...READ MORE

answered Apr 3 in Python by SA
• 1,030 points
128 views
0 votes
1 answer

What is the difference between Python and IPython?

There are few differences between Python and ...READ MORE

answered Jul 26, 2018 in Python by Priyaj
• 56,960 points
536 views
0 votes
1 answer

What is the difference between re.search and re.match?

The theoritical approach can be this way, re.match is ...READ MORE

answered Aug 10, 2018 in Python by Priyaj
• 56,960 points
1,280 views
+1 vote
1 answer

What is the difference between range and xrange functions in Python 2.X?

xrange only stores the range params and ...READ MORE

answered Aug 22, 2018 in Python by Priyaj
• 56,960 points
311 views
0 votes
1 answer
0 votes
1 answer

What is the difference between staticmethod and classmethod?

A staticmethod is a method that knows nothing about ...READ MORE

answered Dec 17, 2018 in Python by abc
54 views
0 votes
1 answer

In Python, what is difference between Array and List?

Lists and arrays are used in Python ...READ MORE

answered Mar 15 in Python by Taj
• 1,040 points

edited Mar 18 by Omkar 8,576 views