Skip to content
Advertisement

How to extract images from pandas dataframe

I want to extract findings and filename columns from below dataframe. enter image description here

For extracting images I use manual path to images having total number of 7467 images.

JavaScript

Next I use the following code for extracting findings and images.

JavaScript

But I want to extract images from filename something like this for row in df[filename].

Advertisement

Answer

For future posts, please paste the data in a form that can be more easily used in an example.

I think this is what you are trying to accomplish? (Try to resist the use of for loops):

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