fork download
  1. # your code goes here
  2. def f(x, y):
  3. s = set(x.split()) - set(y.split())
  4. if s:
  5. return [0, ', '.join(s)]
  6. return [1, np.nan]
  7.  
  8. df[['output', 'issue']] = pd.DataFrame([f(*s) for s in zip(df['extracted'], df['concatenated'])])
Runtime error #stdin #stdout #stderr 0.11s 23596KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 8, in <module>
NameError: name 'pd' is not defined