Skip to content

CSV to Markdown Table Converter script takes a CSV file and prints its contents in a Markdown table format. The script reads the CSV headers and then outputs each row in the Markdown table format.

Notifications You must be signed in to change notification settings

AlteredAdmin/CSV-to-Markdown-Table-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

CSV to Markdown Table Converter

Converts CSV files to Markdown tables.

Description

This simple script takes a CSV file and prints its contents in a Markdown table format. The script reads the CSV headers and then outputs each row in the Markdown table format.

Requirements

  • Python

Usage

  1. Clone the repository.
  2. Navigate to the directory containing the script.
  3. Run the script using the command below:
python CSVtoMarkdownTableConverter.py

Replace script_name.py with the actual name of the script.

  1. When prompted, provide the full path to the CSV file you want to convert.

Example:

Enter the file path for the CSV file: /path/to/your/csvfile.csv
  1. The script will then output the CSV data in a Markdown table format. Copy and paste the output into your Markdown file or document.

Output Format

The output will look something like:

| Header1 | Header2 | Header3 |
| --- | --- | --- |
| data1 | data2 | data3 |
| data4 | data5 | data6 |
...

Support the Developer

If you found this helpful, please consider:

  • Buymeacoffee: Link

About

CSV to Markdown Table Converter script takes a CSV file and prints its contents in a Markdown table format. The script reads the CSV headers and then outputs each row in the Markdown table format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages