Community Conundrum 25: Feature Visualization is now live! Read More

Insert an actual image in a dataframe cell

Level 1
Insert an actual image in a dataframe cell

Hi,

Is it possible to insert an actual image in a dataframe cell so one can download it as an excel output? You can do it in python using xlsxwriter. Do we have similar option in dataiku?


https://xlsxwriter.readthedocs.io/example_images.html

 

Thanks!

0 Kudos
1 Reply
Dataiker
Dataiker

@Sanjeev 

Dataiku will allow you to download your content into Excel, but for this you would need to embed the images inside of pandas itself.

I don't think this is possible at the moment, and can only be achieved by rendering the images when the dataframe is displayed, but not actually saved with it. See here for a demo on how to do that.

Having said that, given that xlsxwriter is a Python package, you could handle the entire process inside of a Python recipe, which would include the file generation portion.

Good luck!