Skip to content

Instantly share code, notes, and snippets.

@tijptjik
Last active June 7, 2017 04:27
Show Gist options
  • Save tijptjik/5aa85d663b58870005ddd4d50862bb25 to your computer and use it in GitHub Desktop.
Save tijptjik/5aa85d663b58870005ddd4d50862bb25 to your computer and use it in GitHub Desktop.
checkgender.py
import pandas as pd
df = pd.DataFrame(['M','F','U','different',2023], columns=['gender'])
df[df.gender.isin(['M','F','U']) == False]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment