Skip to content

Instantly share code, notes, and snippets.

@Riyasharma-in
Created March 31, 2023 16:38
Show Gist options
  • Select an option

  • Save Riyasharma-in/4732810902d5c699f3b929e6e9be2d1f to your computer and use it in GitHub Desktop.

Select an option

Save Riyasharma-in/4732810902d5c699f3b929e6e9be2d1f to your computer and use it in GitHub Desktop.
Sorting and Automate Adjustment
# sort the bounding boxes by their x-coordinate, y-coordinate, and x2-coordinate
df = df.sort_values(["x","y", "x2"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment