Last active
February 2, 2021 09:22
-
-
Save deanjamesss/f8e1169b5886efb95844dcefdc8b350a 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
import pandas as pd | |
if __name__ == '__main__': | |
# Set yes & maybe to True and no to False. | |
df = pd.read_csv('read_csv_true_values.csv', header=0, | |
true_values=['yes', 'maybe'], false_values=['no']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment