Skip to content

Commit 7932c34

Browse files
authored
Merge pull request #359 from OpenDataServices/306-titles-sheet-names
flatten: Use titles for sheet names
2 parents f8e2838 + f25f6d8 commit 7932c34

File tree

21 files changed

+72
-41
lines changed

21 files changed

+72
-41
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [0.13.0] - 2020-09-09
10+
11+
### Changed
12+
13+
- When `--use-titles` is specified, also use the titles for sheet names (ie. Excel tabs and CSV filenames)
14+
915
## [0.12.0] - 2020-08-25
1016

1117
### Added

docs/create-template.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ CSV files for you:
4040
.. csv-table:: sheet: cafe.csv
4141
:file: ../examples/create-template/simple/expected/cafe.csv
4242

43-
.. csv-table:: sheet: table.csv
44-
:file: ../examples/create-template/simple/expected/table.csv
43+
.. csv-table:: sheet: Table.csv
44+
:file: ../examples/create-template/simple/expected/Table.csv
4545

46-
.. csv-table:: sheet: tab_dish.csv
47-
:file: ../examples/create-template/simple/expected/tab_dish.csv
46+
.. csv-table:: sheet: Tab_Dish.csv
47+
:file: ../examples/create-template/simple/expected/Tab_Dish.csv
4848

4949
As you can see, by default Flatten Tool puts each item with an Identifier in
5050
its own sheet.
@@ -81,14 +81,14 @@ Here are the resulting sheets:
8181
.. csv-table:: sheet: cafe.csv
8282
:file: ../examples/create-template/rollup/expected/cafe.csv
8383

84-
.. csv-table:: sheet: table.csv
85-
:file: ../examples/create-template/rollup/expected/table.csv
84+
.. csv-table:: sheet: Table.csv
85+
:file: ../examples/create-template/rollup/expected/Table.csv
8686

87-
.. csv-table:: sheet: tab_dish.csv
88-
:file: ../examples/create-template/rollup/expected/tab_dish.csv
87+
.. csv-table:: sheet: Tab_Dish.csv
88+
:file: ../examples/create-template/rollup/expected/Tab_Dish.csv
8989

9090

91-
Notice how ``Table: Number`` now appears in both the ``cafe.csv`` and ``table.csv`` files.
91+
Notice how ``Table: Number`` now appears in both the ``Cafe.csv`` and ``Table.csv`` files.
9292

9393
``rollup`` can also be used to rollup actual data with ``flatten``, with or
9494
without a schema: :ref:`flattening`

docs/flatten.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ Here are the resulting sheets:
221221
.. csv-table:: sheet: cafe.csv
222222
:file: ../examples/flatten/rollup/schema/expected/cafe.csv
223223

224-
.. csv-table:: sheet: owners.csv
225-
:file: ../examples/flatten/rollup/schema/expected/owners.csv
224+
.. csv-table:: sheet: Owners.csv
225+
:file: ../examples/flatten/rollup/schema/expected/Owner.csv
226226

227227
Notice how ``Owner: First name``, ``Owner: Last name`` and ``Owner: Email`` now
228-
appear in both the ``cafe.csv`` and ``owners.csv`` files.
228+
appear in both the ``cafe.csv`` and ``Owner.csv`` files.
229229

230230
.. caution ::
231231
@@ -265,7 +265,7 @@ Run this command to rollup all properties of the ``owners`` object:
265265

266266
Where the file contains:
267267

268-
.. literalinclude:: ../examples/flatten/rollup/file/fields_to_rollup.xt
268+
.. literalinclude:: ../examples/flatten/rollup/file/fields_to_rollup.txt
269269
:language: bash
270270

271271
You can include multiple fields to rollup by passing ``--rollup`` multiple times:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)