Converts CSV files to Markdown tables.
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.
- Python
- Clone the repository.
- Navigate to the directory containing the script.
- Run the script using the command below:
python CSVtoMarkdownTableConverter.py
Replace script_name.py
with the actual name of the script.
- 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
- The script will then output the CSV data in a Markdown table format. Copy and paste the output into your Markdown file or document.
The output will look something like:
| Header1 | Header2 | Header3 |
| --- | --- | --- |
| data1 | data2 | data3 |
| data4 | data5 | data6 |
...
If you found this helpful, please consider:
- Buymeacoffee: Link