0

I'm no sure what the right terminology to use for this ask is, but i want to create a python output that will look something like this:

enter image description here

With the intent of having some Data extracted from specific cells of a dataframe fill in the TEXT section of the image. Obviously i want the data to not be hard-coded so i can change it as per the topic. What packages even do this? I've never explored the "visual" component side of python before.

Edward Gorelik
  • 179
  • 1
  • 9
  • [Pillow](https://pypi.org/project/Pillow/) can achieve this – Sujal Singh Sep 20 '21 at 04:30
  • seem to be running into a separate issue with Pillow, where jupyter notebooks has it installed but it doesn't seem to be able to import it. Is that just a version issue? – Edward Gorelik Sep 20 '21 at 05:05
  • Haven't used jupyter so won't be able to say with certainty what could be causing this. – Sujal Singh Sep 20 '21 at 05:09
  • if you get error message with Pillow then you should show it in your question. Maybe you have two Python installed and you installed Pillow in one Python and you run code with other Python. OR it needs to install some C/C++ library which is not part of Python. – furas Sep 20 '21 at 07:49
  • in you use jupyter and work with data then you probably know module `matplotlib` which is used for plots - but it should have also functions to draw rectangles and text. You have to only read documentation. – furas Sep 20 '21 at 07:52
  • Stackoverflow: [python - matplotlib: how to draw a rectangle on image](https://stackoverflow.com/questions/37435369/matplotlib-how-to-draw-a-rectangle-on-image) – furas Sep 20 '21 at 07:54

0 Answers0