How to convert a dataframe in pdf format and export it to local?

Summary

I have a dataframe which I want to export in pdf format. Option for exporting is csv is there but that’s not what I am looking for.
Can anyone help?

Steps to reproduce

Code snippet:

add code here

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Explain what you expect to happen when you run the code above.

Actual behavior:

Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.

Links

  • Link to your GitHub repo:
  • Link to your deployed app:

Additional information

If needed, add any other context about the problem here.

Hi @qwertyf09, welcome to the forum!

In this case, this question is really not related to Streamlit, and relates to the python package pandas, so your best bet is to search for something like “pandas dataframe to pdf” on Google or StackOverflow. See this post for more guidelines like this about posting on the streamlit forum.

Here is an example StackOverflow question which has some suggested methods of generating a pdf from a pandas dataframe – hope one of these works for you: Export Pandas DataFrame into a PDF file using Python - Stack Overflow

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.