Skip to main content

A function to convert DataFrames to GitHub markdown

pip install dftogithubmarkdown

from dftogithubmarkdown import to_git_markdown
print(to_git_markdown(df, max_col_width=30, max_rows=-1))
"""
Convert a pandas DataFrame to a GitHub-flavored markdown table string.

Parameters:
df (pd.DataFrame): The DataFrame to convert.
max_col_width (int): Maximum width for each column in the markdown table. Default is 30.
max_rows (int): Maximum number of rows to include in the table. If -1, include all rows.

Returns:
str: A string representing the DataFrame in GitHub-flavored markdown table format.
"""

Metadata

Release files for dftogithubmarkdown 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dftogithubmarkdown 0.10
File Size Uploaded Provenance Actions
dftogithubmarkdown-0.10.tar.gz 4.2 kB Without provenance Details for dftogithubmarkdown-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dftogithubmarkdown 0.10
File Interpreter ABI Platform Actions
dftogithubmarkdown-0.10-py3-none-any.whl Python 3 none any Details for dftogithubmarkdown-0.10-py3-none-any.whl

Total release size: 10.2 kB

Release files / dftogithubmarkdown-0.10.tar.gz

Download URL dftogithubmarkdown-0.10.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
95d2fe35a0002083da843e62296abc43b55df818182fe7c34c6bae0cbba36e05
BLAKE2b-256 checksum
How to use checksums
b83e7dc29f39d8e99912e8f609ebf37ce66158340abca5c21a2fe5053b09f400
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / dftogithubmarkdown-0.10-py3-none-any.whl

Download URL dftogithubmarkdown-0.10-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8260cd8bb11e52860ac87f32c8117bac5f3b32f7e18d8008cd48c30c4d927dfa
BLAKE2b-256 checksum
How to use checksums
4f05e55861b478ed0549430353c29e7b498f03a0d6ffea079b1b3d6cde7f59cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for dftogithubmarkdown 0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page