We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b74919 + c398cb8 commit fb6c392Copy full SHA for fb6c392
README.rst
@@ -471,6 +471,42 @@ Generate json objects
471
472
473
474
+Read csv file
475
++++++++++++++
476
+
477
+Read a csv file into Python dicts.
478
479
480
+.. code-block:: bash
481
482
+ % mario csv < names.csv
483
+ {'name': 'Alice', 'age': '21'}
484
+ {'name': 'Bob', 'age': '25'}
485
486
487
+.. code-block:: toml
488
489
+ [[alias]]
490
491
+ name = "csv"
492
+ short_help = "Load csv rows into python objects"
493
494
+ [[alias.stage]]
495
496
+ command = "apply"
497
+ options = {code="csv.DictReader"}
498
499
500
501
+ command = "chain"
502
503
504
505
+ command = "map"
506
+ options = {code="dict"}
507
508
509
510
Plugins
511
~~~~~~~
512
0 commit comments