def setify_drop_nones(series):
def drop_nones(x):<EOL><INDENT>x.discard(None)<EOL>return x<EOL><DEDENT>return series.apply(lambda x: set(x)).apply(drop_nones)<EOL>
Convert to sets and drop ``None`` values.