Skip to content
Advertisement

pd.dataframe saving only one line

Hi i’m wondering what should i do to save all those values in a dataframe…

JavaScript

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

enter image description here

can someone help me?

Advertisement

Answer

You are overwriting and saving your dataframe within the loop. You should instead do something like the following:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement