-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add preview to datasets as specified in the Kedro catalog under metad…
…ata (#1374) This ticket is part 2 of the preview dataset feature development. In the first part, we enabled preview functionality for CSV and Excel datasets in the Kedro Framework. In Kedro-viz, we showed previews for all CSV and Excel datasets when the user turned on the preview option under the settings panel. In this ticket, we are removing the preview option from the settings panel. Now, if the user wants to preview a dataset, they need to specify it via the catalog.yml file. type: pandas.CSVDataSet filepath: /filepath/to/dataset metadata: kedro-viz: layer: raw preview_args: nrows: 3 In the above the user wants to see the first 3 rows of the dataset. Previously we always showed the first 40 rows, but now we show the number of rows specified by the user in the catalog.yml file.
- Loading branch information
1 parent
a26e304
commit 48ad392
Showing
7 changed files
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
companies: | ||
type: pandas.CSVDataSet | ||
filepath: ${base_location}/01_raw/companies.csv | ||
layer: raw | ||
metadata: | ||
kedro-viz: | ||
layer: raw | ||
preview_args: | ||
nrows: 5 | ||
|
||
reviews: | ||
type: pandas.CSVDataSet | ||
filepath: ${base_location}/01_raw/reviews.csv | ||
metadata: | ||
kedro-viz: | ||
layer: raw | ||
preview_args: | ||
nrows: 4 | ||
nrows: 10 | ||
|
||
|
||
shuttles: | ||
type: pandas.ExcelDataSet | ||
filepath: ${base_location}/01_raw/shuttles.xlsx | ||
metadata: | ||
kedro-viz: | ||
layer: raw | ||
preview_args: | ||
nrows: 15 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters