diff options
| author | Bobby <[email protected]> | 2022-01-23 17:52:38 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-01-23 17:52:38 -0500 |
| commit | 35c2d88d604516d52d2623cdc27029348e1bae47 (patch) | |
| tree | c59545041202184979f8ac9d1b20cf2d76cc0750 /docs/chaining-methods.md | |
| parent | 3eea7aa6f6517f3757ab14977b0e7f32af2e5952 (diff) | |
| download | izuku.js-35c2d88d604516d52d2623cdc27029348e1bae47.tar.xz izuku.js-35c2d88d604516d52d2623cdc27029348e1bae47.zip | |
docs: move docs to mkdocs
Diffstat (limited to 'docs/chaining-methods.md')
| -rw-r--r-- | docs/chaining-methods.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/chaining-methods.md b/docs/chaining-methods.md new file mode 100644 index 0000000..d50f710 --- /dev/null +++ b/docs/chaining-methods.md @@ -0,0 +1,16 @@ +# Chaining Methods + +Since, the row and column methods return a new frame, you can chain them together to get the data of multiple rows and columns. The following example shows how to get the data of multiple rows and columns. + +The returned data is also a new frame and you can continue chaining other frame methods on it. + +```js +const data = [[...], [...], ...]; +const header = [...]; +const frame = new Frame(data, header); + +// 1. get multiple rows on Index 2 and 3 +// 2. then get the 'Name' and 'Age' columns of those rows +// 3. finally print the data +frame.row([2, 3]).column(['Name', 'Age']).show(); +``` |
