Pandas: reemplazar subcadena en cadena

Quiero reemplazar la subcadena icashier.alipay.com en la columna en df

 url icashier.alipay.com/catalog/2758186/detail.aspx icashier.alipay.com/catalog/2758186/detail.aspx icashier.alipay.com/catalog/2758186/detail.aspx vk.com 

a aliexpress.com .

Salida de deseo

 aliexpress.com/catalog/2758186/detail.aspx aliexpress.com/catalog/2758186/detail.aspx aliexpress.com/catalog/2758186/detail.aspx vk.com 

Intento df['url'].replace('icashier.alipay.com', 'aliexpress.com', 'inplace=True') pero devuelve empty dataframe .

    Use replace con dict para reemplazar y parámetros inplace=True y regex=True :

     df['url'].replace({'icashier.alipay.com': 'aliexpress.com'}, inplace=True, regex=True) print (df) url 0 aliexpress.com/catalog/2758186/detail.aspx 1 aliexpress.com/catalog/2758186/detail.aspx 2 aliexpress.com/catalog/2758186/detail.aspx 3 vk.com 

    use str.replace para reemplazar una subcadena, replace apariencias exactas a menos que pase un patrón de expresiones regex=True y param regex=True :

     In [25]: df['url'] = df['url'].str.replace('icashier.alipay.com', 'aliexpress.com') df['url'] Out[25]: 0 aliexpress.com/catalog/2758186/detail.aspx 1 aliexpress.com/catalog/2758186/detail.aspx 2 aliexpress.com/catalog/2758186/detail.aspx 3 vk.com Name: url, dtype: object