Skip to content
Advertisement

Tag: arraylist

Python: smallest number in list

I’m new to python and i don’t know how to find the smallest number in each array. The input is [ [2], [3, 4], [6, 5, 7], [4, 1, 8, 3] ] and the output should be [2, 3, 5, 1]. I have try this: And the output that i got is [2], i have no idea about this. Please

pd.dataframe saving only one line

Hi i’m wondering what should i do to save all those values in a dataframe… already tried to save each one separately but it wont came up.. i needed to save all printed values in a dataframe, thats for 304 images (304 lines) buts it only saves the last line can someone help me? Answer You are overwriting and saving

Advertisement