diff -r 8c0761260d22 Doc/library/csv.rst --- a/Doc/library/csv.rst Sat Feb 27 08:42:14 2016 +0200 +++ b/Doc/library/csv.rst Sat Feb 27 18:51:49 2016 -0800 @@ -11,6 +11,35 @@ single: csv pair: data; tabular +Minimal Example +--------------- + +Example CSV (Comma Separated Value) File +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +.. code:: + + test,test2,test3 + test4,test5,test6 + +Example CSV Reader +^^^^^^^^^^^^^^^^^^ + +.. code:: python + + import csv + + with open("example.csv") as csv_handle: + example_reader = csv.reader(csv_handle) + for row in example_reader: + for item in row: + print(item) # prints individual element + print(row) # prints a list of elements + + +Full Documentation +------------------ + The so-called CSV (Comma Separated Values) format is the most common import and export format for spreadsheets and databases. CSV format was used for many years prior to attempts to describe the format in a standardized way in