Skip to content

Instantly share code, notes, and snippets.

@ChaitanyaBaweja
Created July 9, 2020 17:31
Show Gist options
  • Save ChaitanyaBaweja/b530dff90a5e789659bea2e6e7fc207d to your computer and use it in GitHub Desktop.
Save ChaitanyaBaweja/b530dff90a5e789659bea2e6e7fc207d to your computer and use it in GitHub Desktop.
# a list with all missing value formats
missing_value_formats = ["n.a.","?","NA","n/a", "na", "--"]
df = pd.read_csv("employees.csv", na_values = missing_value_formats)
#print gender again
print(df['Gender'].head(10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment