From cd847646e0d3c7fe3568d5547446b75ede83f277 Mon Sep 17 00:00:00 2001 From: Alix Damman Date: Fri, 17 Nov 2017 15:48:19 +0100 Subject: [PATCH] fix #525 : updated Load/Dump from files section of the tutorial + renamed data.xlsx to demography.xlsx --- doc/source/tutorial.rst | 10 +++++----- larray/tests/data/{data.xlsx => demography.xlsx} | Bin 2 files changed, 5 insertions(+), 5 deletions(-) rename larray/tests/data/{data.xlsx => demography.xlsx} (100%) diff --git a/doc/source/tutorial.rst b/doc/source/tutorial.rst index f68774021..ec18e6ebd 100644 --- a/doc/source/tutorial.rst +++ b/doc/source/tutorial.rst @@ -192,7 +192,7 @@ or Excel sheets (see documentation of :py:func:`read_excel` for more details) # loads array from the first sheet if no sheetname is given @verbatim - pop = read_excel(example_dir + 'data.xlsx', 'pop') + pop = read_excel(example_dir + 'demography.xlsx', 'pop') @suppress pop = read_csv(example_dir + 'pop.csv') @@ -205,7 +205,7 @@ documentation of :py:func:`read_hdf` for more details) .. ipython:: python - mortality = read_hdf(example_dir + 'data.h5','qx') + mortality = read_hdf(example_dir + 'demography.h5','qx') mortality.info Dump in files @@ -225,15 +225,15 @@ or in Excel files (see documentation of :py:meth:`~LArray.to_excel` for more det # if the file does not already exist, it is created with a single sheet, # otherwise a new sheet is added to it - household.to_excel('data2.xlsx', overwrite_file=True) + household.to_excel('demography_2.xlsx', overwrite_file=True) # it is usually better to specify the sheet explicitly (by name or position) though - household.to_excel('data2.xlsx', 'hh') + household.to_excel('demography_2.xlsx', 'hh') or in HDF5 files (see documentation of :py:meth:`~LArray.to_hdf` for more details) .. ipython:: python - household.to_hdf('data2.h5', 'hh') + household.to_hdf('demography_2.h5', 'hh') more Excel IO ~~~~~~~~~~~~~ diff --git a/larray/tests/data/data.xlsx b/larray/tests/data/demography.xlsx similarity index 100% rename from larray/tests/data/data.xlsx rename to larray/tests/data/demography.xlsx