Skip to content

Instantly share code, notes, and snippets.

@deanjamesss
Last active February 2, 2021 09:22
Show Gist options
  • Save deanjamesss/f8e1169b5886efb95844dcefdc8b350a to your computer and use it in GitHub Desktop.
Save deanjamesss/f8e1169b5886efb95844dcefdc8b350a to your computer and use it in GitHub Desktop.
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