0

I'm wanting to take a range of cells from an Excel workbook and paste them in a Word doc as an image at a certain point. Is this possible with Python? I know pasting a normal table is, but I can't find any modules or documentation regarding doing so as an image.

macropod
  • 12,757
  • 2
  • 9
  • 21
Phil
  • 151
  • 1
  • 8
  • 1
    If you can get the data from your workbook into a pandas dataframe, you can plot the data into an image as a a table. You can then do anything with that image. See here for reference. [1]: https://pandas.pydata.org/pandas-docs/stable/user_guide/visualization.html#plotting-tables [2]: https://stackoverflow.com/questions/35634238/how-to-save-a-pandas-dataframe-table-as-a-png – skuzzy Dec 15 '20 at 04:12
  • Helpful way to go about this, thank you. – Phil Dec 15 '20 at 04:18

1 Answers1

0

If you can get the data from your workbook into a pandas dataframe, you can plot the data into an image as a table using one of many alternatives. You can then do anything with that image.
See here.

skuzzy
  • 541
  • 1
  • 3
  • 14