Skip to content

Tag: python

3.11 Lab: Smallest number

Write a program whose inputs are three integers, and whose output is the smallest of the three values. If the input is: The output is: 3 This is the code I have come up with: This code works for that input, however if you input “29, 6, 17” it returned no output with an error I have dinked around q…

Drop first nan rows in multiple columns

I have the below df: I want to structure the data so the first NaN rows are deleted by column. Resuling df: I’m essentially trying to shift the column data up by n rows depending on where the data starts for that column, so at the first rows of ID there is always data in at least 1 of the

Find end point on each line using OpenCV

I’m trying to get the coordinate of every end point on every line, but i couldn’t come up with a solution, this is what I’ve currently got but its finding the outline of the lines not the lines itself Answer The hit-or-miss transform can be used to find end points of a line after skeletoniza…