From f2c0e6b11b4faebb857c7609fca4c3691fe048dd Mon Sep 17 00:00:00 2001 From: Sam Lau Date: Tue, 5 Jan 2016 21:31:58 -0800 Subject: [PATCH] Fix typos in tutorial Closes #171 . --- docs/tutorial.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 20cd18c1c..f701243d4 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -79,7 +79,7 @@ spreadsheet, for example). Here's the content of an example file: .. ipython:: python - cat mydata.csv + cat sample.csv And this is how we load it in as a :class:`Table` using :meth:`~datascience.tables.Table.read_table`: @@ -128,7 +128,12 @@ To access values of columns in the table, use t.values('letter') t.values('count') +Use bracket notation as a shorthand for this method: + +.. ipython:: python + t['letter'] # This is a shorthand for t.values('letter') + t['count'] # This is a shorthand for t.values('count') To access values by row, :meth:`~datascience.tables.Table.rows` returns an list-like :class:`~datascience.tables.Table.Rows` object that contains