In this particular case I would say there is no difference
I guess what bothers you is the use of
it's the same to have separate function
I guess what bothers you is the use of
lambda
. Basically that is anonymous functionit's the same to have separate function
def lowercase_email(email): return email.lower() ... df['Email'] = df['Email'].apply(lowercase_email)look at pandas.Series.apply
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs