How to use thermal printer in streamlit app / dataframe data print by thermal printer

Dear sir

Kindly assist me in understanding how to print the data from my dataframe using a thermal printer.

I require only simple text data, without any images. Please provide me with the correct code. Thank you in advance for your invaluable assistance.

see picture this type of printing by directly from dataframe by button press