CryptoJS.pad.NoPadding = {pad: function(){}, unpad: function(){}};
var text = "My Secret text\0\0";
var key = CryptoJS.enc.Hex.parse("253D3FB468A0E24677C28A624BE0F939");
var iv = CryptoJS.enc.Hex.parse("00000000000000000000000000000000");
var encrypted = CryptoJS.AES.encrypt(text, key, {iv: iv, padding: CryptoJS.pad.NoPadding});
console.log(encrypted.toString());
我只需要salary_percentile和相应的第二个百分比值(早期的quitter列为1) - 我该如何正确地做到这一点?
答案 0 :(得分:1)
最简单的是xs
:
df = df.xs(1, level=1)
print (df)
salary_percentile
[17000, 25000] 0.255474
(25000,30000] 0.248120
(30000,38000] 0.298201
Name: val, dtype: float64