Or less cryptic if you are not used to passing bou...
# python
g
Or less cryptic if you are not used to passing bound methods as arguments:
jupyterhub_priv_subnets.apply(lambda subnets: ','.join(subnets))