Skip to content

Commit

Permalink
format README
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiriyon committed May 17, 2023
1 parent 27ce11b commit 751295d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@

# Usage

![csv2json2yaml](img/csv2json2yaml.png)

To convert JSON data to YAML format, use the command `python csv2json2yaml.py json2yaml input_file.json output_file.yaml`, replacing `input_file.json` with the path to your JSON file and output_file.yaml with the desired output file name.

To convert CSV data to JSON format with grouping, use the command python `csv2json2yaml.py csv2json mycsv.csv --groupby column1,column2 --output name.json`, replacing `mycsv.csv` with the path to your CSV file, column1,column2 with the column names you want to group by (separated by commas), and `name.json` with the desired output file name.
Expand Down
1 change: 1 addition & 0 deletions example_output/sample.csv
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ zf11,live,wt
zf12,dead,ht
zf13,dead,mut
zf14,live,mut

Binary file added img/csv2json2yaml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 751295d

Please sign in to comment.