Skip to content

Commit af6e92c

Browse files
Merge pull request #69 from thedataincubator/master
Documenting README more clearly
2 parents e2c723f + fa64953 commit af6e92c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,12 @@ Result sets come with a ``.csv(filename=None)`` method. This generates
229229
comma-separated text either as a return value (if ``filename`` is not
230230
specified) or in a file of the given name.
231231

232+
.. code-block:: python
233+
234+
In[8]: result = %sql SELECT title, totalwords FROM work WHERE genretype = 'c'
235+
236+
In[9]: result.csv(filename='work.csv')
237+
232238
Development
233239
-----------
234240

0 commit comments

Comments
 (0)