Skip to content

Commit e1a88ff

Browse files
committed
fix #525 : updated Load/Dump from files section of the tutorial + renamed data.xlsx to demography.xlsx
1 parent ddc42b2 commit e1a88ff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/source/tutorial.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ or Excel sheets (see documentation of :py:func:`read_excel` for more details)
192192
193193
# loads array from the first sheet if no sheetname is given
194194
@verbatim
195-
pop = read_excel(example_dir + 'data.xlsx', 'pop')
195+
pop = read_excel(example_dir + 'demography.xlsx', 'pop')
196196
197197
@suppress
198198
pop = read_csv(example_dir + 'pop.csv')
@@ -205,7 +205,7 @@ documentation of :py:func:`read_hdf` for more details)
205205

206206
.. ipython:: python
207207
208-
mortality = read_hdf(example_dir + 'data.h5','qx')
208+
mortality = read_hdf(example_dir + 'demography.h5','qx')
209209
mortality.info
210210
211211
Dump in files
@@ -225,15 +225,15 @@ or in Excel files (see documentation of :py:meth:`~LArray.to_excel` for more det
225225
226226
# if the file does not already exist, it is created with a single sheet,
227227
# otherwise a new sheet is added to it
228-
household.to_excel('data2.xlsx', overwrite_file=True)
228+
household.to_excel('demography_2.xlsx', overwrite_file=True)
229229
# it is usually better to specify the sheet explicitly (by name or position) though
230-
household.to_excel('data2.xlsx', 'hh')
230+
household.to_excel('demography_2.xlsx', 'hh')
231231
232232
or in HDF5 files (see documentation of :py:meth:`~LArray.to_hdf` for more details)
233233

234234
.. ipython:: python
235235
236-
household.to_hdf('data2.h5', 'hh')
236+
household.to_hdf('demography_2.h5', 'hh')
237237
238238
more Excel IO
239239
~~~~~~~~~~~~~
File renamed without changes.

0 commit comments

Comments
 (0)