Skip to content

Instantly share code, notes, and snippets.

@deanjamesss
Last active February 2, 2021 08:31
Show Gist options
  • Save deanjamesss/3114eecea1f24a1593b608ec1e51ab82 to your computer and use it in GitHub Desktop.
Save deanjamesss/3114eecea1f24a1593b608ec1e51ab82 to your computer and use it in GitHub Desktop.
import pandas as pd
# Ensure they type of employee_no is a string.
df = pd.read_csv('read_csv_dtype.csv', dtype={'employee_no': str})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment