Skip to content

Instantly share code, notes, and snippets.

@erraticgenerator
Created October 31, 2020 23:59
Show Gist options
  • Save erraticgenerator/a4b855ad83bc907097af5b10cf1fdc97 to your computer and use it in GitHub Desktop.
Save erraticgenerator/a4b855ad83bc907097af5b10cf1fdc97 to your computer and use it in GitHub Desktop.
mask = (df.filter(regex='chinese', axis=1).sum(axis=1).astype(bool) &
df.filter(regex='sans-serif', axis=1).sum(axis=1).astype(bool))
df_selected = df[mask]
df_selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment