Skip to content

Commit

Permalink
updated tutorial:
Browse files Browse the repository at this point in the history
- added generate_data.py module to generate the example and test data
- renamed 'population_session' dataset as 'demography_eurostat'
- included values for years 2016 and 2017 for all arrays of 'demography_eurostat'
- fix #785
- added the 'Pythonic VS String Syntax' section
- updated all existing sections to include changes up to the 0.31 release version
  • Loading branch information
alixdamman committed Oct 8, 2019
1 parent 8c61c86 commit 211684a
Show file tree
Hide file tree
Showing 57 changed files with 2,887 additions and 1,196 deletions.
1 change: 1 addition & 0 deletions doc/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ It is mainly dedicated to help new users to familiarize with it and others to re
./tutorial/tutorial_transforming.ipynb
./tutorial/tutorial_indexing.ipynb
./tutorial/tutorial_arithmetic_op_and_aggregation.ipynb
./tutorial/tutorial_string_syntax.ipynb
./tutorial/tutorial_plotting.ipynb
./tutorial/tutorial_miscellaneous.ipynb
./tutorial/tutorial_sessions.ipynb
Expand Down
6 changes: 3 additions & 3 deletions doc/source/tutorial/tutorial_IO.ipyml
Original file line number Diff line number Diff line change
Expand Up @@ -574,17 +574,17 @@ cells:
- code: |
# create a new Session object and load all arrays, axes, groups and metadata
# from all CSV files located in the passed directory
csv_dir = get_example_filepath('population_session')
csv_dir = get_example_filepath('demography_eurostat')
session = Session(csv_dir)

# create a new Session object and load all arrays, axes, groups and metadata
# stored in the passed Excel file
filepath_excel = get_example_filepath('population_session.xlsx')
filepath_excel = get_example_filepath('demography_eurostat.xlsx')
session = Session(filepath_excel)

# create a new Session object and load all arrays, axes, groups and metadata
# stored in the passed HDF5 file
filepath_hdf = get_example_filepath('population_session.h5')
filepath_hdf = get_example_filepath('demography_eurostat.h5')
session = Session(filepath_hdf)

print(session.summary())
Expand Down
6 changes: 3 additions & 3 deletions doc/source/tutorial/tutorial_IO.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -835,17 +835,17 @@
"source": [
"# create a new Session object and load all arrays, axes, groups and metadata \n",
"# from all CSV files located in the passed directory\n",
"csv_dir = get_example_filepath('population_session')\n",
"csv_dir = get_example_filepath('demography_eurostat')\n",
"session = Session(csv_dir)\n",
"\n",
"# create a new Session object and load all arrays, axes, groups and metadata\n",
"# stored in the passed Excel file\n",
"filepath_excel = get_example_filepath('population_session.xlsx')\n",
"filepath_excel = get_example_filepath('demography_eurostat.xlsx')\n",
"session = Session(filepath_excel)\n",
"\n",
"# create a new Session object and load all arrays, axes, groups and metadata\n",
"# stored in the passed HDF5 file\n",
"filepath_hdf = get_example_filepath('population_session.h5')\n",
"filepath_hdf = get_example_filepath('demography_eurostat.h5')\n",
"session = Session(filepath_hdf)\n",
"\n",
"print(session.summary())"
Expand Down
Loading

0 comments on commit 211684a

Please sign in to comment.