On Mon, Nov 29, 2021 at 08:44:00AM -0500, David Mertz, Ph.D. wrote:
> On Mon, Nov 29, 2021 at 5:15 AM Steven D'Aprano <[email protected]> wrote:
> 
> > - the method modifies the object in place, and returns self;
> > - versus the method returns a new, modified, copy of the object.
> > Pandas uses the first style (I think; corrections welcome). Strings use
> > the second, because they have no choice.
> >
> 
> Pandas returns SOMETHING when a method is called.  Maybe it's self, maybe
> it's after mutation, maybe it's a new DataFrame, Grouper, Series, etc.

Okay, thanks for the correction.


-- 
Steve
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/TBJ6KNQTQVSNCM7YORYLDL64RYC5Q4KO/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to