熊猫:替换列中的值

时间:2016-07-22 15:10:11

标签: python pandas

我有df

   url, count
   icashier.alipay.com/payment/payment-result.htm...        1  
   icashier.alipay.com/payment/payment-result.htm...        1  
   shoppingcart.aliexpress.com/order/confirm_orde...        1  
   shoppingcart.aliexpress.com/order/confirm_orde...        1  
   shoppingcart.aliexpress.com/order/confirm_orde...        1  

另一个df1

220-volt.ru/order/send
holodilnik.ru/usercp/orders/new
citilink.ru/order/complete
icashier.alipay.com/payment/payment-result.htm

我需要转换df中的值。 欲望输出:

   url, count
   icashier.alipay.com/payment/payment-result.htm        1  
   icashier.alipay.com/payment/payment-result.htm        1  
   shoppingcart.aliexpress.com/order/confirm_orde...        1  
   shoppingcart.aliexpress.com/order/confirm_orde...        1  
   shoppingcart.aliexpress.com/order/confirm_orde...        1

我怎么能用熊猫来做呢?

0 个答案:

没有答案