Skip to content

Instantly share code, notes, and snippets.

@ADGEfficiency
Last active December 4, 2020 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ADGEfficiency/e40e5684a941654540f099877b813a9e to your computer and use it in GitHub Desktop.
Save ADGEfficiency/e40e5684a941654540f099877b813a9e to your computer and use it in GitHub Desktop.
Mistakes Data Scientists Make
# data.py
parser.add_argument('--nrows', nargs='?')
args = parser.parse_args()
data = pd.read_csv('data.csv', nrows=args.nrows)
print(f'loaded {data.shape[0]} rows')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment