Created
July 9, 2020 17:31
-
-
Save ChaitanyaBaweja/b530dff90a5e789659bea2e6e7fc207d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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