On 2021年10月31日 at 18:42, Shaozhong SHI <shishaozhong at gmail.com> wrote: >>> On Sunday, 31 October 2021, Albert-Jan Roskam <sjeik_appie at hotmail.com> > wrote: >>>>>>> > df['URL'] = df.apply(lambda x: connect(df['URL']), axis=1) >>>>>> I think you need axis=0. Or use the Series, df['URL'] = >> df.URL.apply(connect) >>> > Just experimented with your suggestion, but have not seen any difference. > Regards, David