擅长:python、mysql、java
<p>你可以试试这样的方法:</p>
<pre><code>nullCond = df.Email.isnull()
# or nullCond = (df.Email == "") it those are empty strings
df.loc[nullCond, 'Subscriberkey'] = "string" + nullCond[nullCond].cumsum().astype(str) + "string"
</code></pre>
<p><a href="https://i.stack.imgur.com/crp86.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/crp86.png" alt="enter image description here"/></a></p>