From fa045ca1146bdd4d5b00f85b99be177bd9bffb5c Mon Sep 17 00:00:00 2001 From: Geoff Crompton Date: Mon, 18 Jan 2016 12:13:15 +1100 Subject: [PATCH] Add section on importing to tutorial. --- docs/tutorial.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index bd2dbc0..551b191 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -39,6 +39,7 @@ You can now start filling this :class:`Dataset ` object with dat + ----------- Adding Rows ----------- @@ -97,6 +98,15 @@ Let's view the data now. :: It's that easy. +-------------- +Importing Data +-------------- +Creating a :class:`tablib.Dataset` object by importing a pre-existing file is simple. :: + + imported_data = tablib.import_set(open('data.csv').read()) + +This detects what sort of data is being passed in, and uses an appropriate formatter to do the import. So you can import from a variety of different file types. + -------------- Exporting Data --------------