3
假設我有一個包含一系列profile
:從列表替換熊貓系列的值
settings-win.data.microsoft.com 1
www.facebook.com 0.4
clients4.google.com 1
plus.google.com 0.86
而且包含列表new_val
:
[0.8408964152537145, 0, 1.5, 0]
如何更換所有值我的profile
系列與清單?它應該是:
settings-win.data.microsoft.com 0.8408964152537145
www.facebook.com 0
clients4.google.com 1.5
plus.google.com 0
我試過的Series
的.replace()
,但它似乎並沒有工作。
PS。我也很困惑如何以及何時使用.replace()
,所以如果你可以進一步解釋它,它將非常感激。
'profile.values = new_val' –