Skip to content

Instantly share code, notes, and snippets.

@qwertyforce
Created June 11, 2023 06:36
Show Gist options
  • Save qwertyforce/d5b40458227af94920ef269054ae181f to your computer and use it in GitHub Desktop.
Save qwertyforce/d5b40458227af94920ef269054ae181f to your computer and use it in GitHub Desktop.
arr = [arr[i:i + 100000] for i in range(0, len(arr), 100000)] # batch len = 100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment