How to apply a self defined function in Pandas

Avi Gross avigross at
Sun Oct 31 19:56:43 EDT 2021

When people post multiple comments and partial answers and the reply every time is to ask for more; there may be a disconnect.

Some assume that the person is just stuck but generally can go forward with a little hint. But when you keep being asked for more, maybe it means they want you to do it for them, as in some asking about HW.

I am not joining this one. 😉

-----Original Message-----
From: Python-list < at> On Behalf Of Karsten Hilbert
Sent: Sunday, October 31, 2021 4:00 PM
To: python-list at
Subject: Re: How to apply a self defined function in Pandas

Am Sun, Oct 31, 2021 at 07:52:18PM +0000 schrieb Shaozhong SHI:

> Well, can you expand the the simplicity?

Not sure how expanding is going to help but here's one way to do it:

	Python 3.9.2 (default, Feb 28 2021, 17:03:44)
	[GCC 10.2.1 20210110] on linux
	Type "help", "copyright", "credits" or "license" for more information.
	>>> list('simplicity')
	['s', 'i', 'm', 'p', 'l', 'i', 'c', 'i', 't', 'y']

GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B

More information about the Python-list mailing list