Skip to content

Commit 42917a2

Browse files
risenWgitbook-bot
authored andcommitted
GitBook: [#222] No subject
1 parent 02736f5 commit 42917a2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

api-reference/dataframe/dataframe.sort_values.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ description: Sort a Dataframe in ascending or descending order by a specified co
66

77
danfo.DataFrame.**sortValues**(by, options) \[[source](https://github.com/opensource9ja/danfojs/blob/cf5c7ae3a009458e61eedd18d9c9b5b6b10d5276/danfojs/src/core/frame.js#L125)]
88

9-
| Parameters | Type | Description | Default |
10-
| ---------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- |
11-
| **by** | Object | This key can be either a single column name or a single array of the same length as the calling DataFrame. | |
12-
| options | Object | <p>Optional configuratio<strong>n:</strong></p><p><strong>ascending:</strong> Order of sorting</p><p><strong>inplace</strong>: Boolean indicating whether to perform the operation inplace or not. Defaults to false</p> | <p>{</p><p><strong>ascending</strong>: true, <strong>inplace</strong>: false</p><p>}</p> |
9+
| Parameters | Type | Description | Default |
10+
| ---------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
11+
| **by** | Object | This key can be either a single column name or a single array of the same length as the calling DataFrame. | |
12+
| options | Object | <p>Optional configuratio<strong>n:</strong> </p><p><strong></strong></p><p><strong>ascending:</strong> Order of sorting </p><p></p><p><strong>inplace</strong>: Boolean indicating whether to perform the operation inplace or not. Defaults to false</p> | <p>{</p><p><strong>ascending</strong>: true, <strong>inplace</strong>: false</p><p>}</p> |
1313

1414
## **Examples**
1515

@@ -86,9 +86,9 @@ df.print()
8686
╔════════════╤═══════════════════╤═══════════════════╤═══════════════════╗
8787
║ │ A │ B │ C ║
8888
╟────────────┼───────────────────┼───────────────────┼───────────────────╢
89-
║ 0 │ 47.3 │ 6 │ 30
89+
║ 0 │ -20 │ 34 │ 20
9090
╟────────────┼───────────────────┼───────────────────┼───────────────────╢
91-
║ 2 │ -20 │ 34 │ 20
91+
║ 2 │ 47.3 │ 6 │ 30
9292
╟────────────┼───────────────────┼───────────────────┼───────────────────╢
9393
║ 1 │ 30 │ 5 │ 3 ║
9494
╚════════════╧═══════════════════╧═══════════════════╧═══════════════════╝

api-reference/input-output/danfo.to_excel.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: >-
66

77
# danfo.toExcel
88

9-
> danfo.**toExcel**(data, options)&#x20;
9+
> danfo.**toExcel**(data, options)
1010
1111
| **Parameters** | Type | Description | Default |
1212
| -------------- | ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
@@ -17,7 +17,7 @@ The **toExcel** function can be used to write out a DataFrame or Series to Excel
1717

1818
### Convert DataFrame to Excel and write to file path
1919

20-
Writing an Excel file to a local file path is only supported in the Nodejs environment
20+
You can write a DataFrame or Series in Excel format using the toExcel function and specifying the file path.&#x20;
2121

2222
{% tabs %}
2323
{% tab title="Node.js" %}
@@ -39,7 +39,7 @@ dfd.toExcel(df, { filePath: "testOut.xlsx"});
3939

4040
### Convert DataFrame to Excel and download the file in Client-side lib
4141

42-
You can automatically convert and download an Excel file in a browser environment, by specifying a filename and setting download to `true`
42+
You can automatically convert and download an Excel file in a browser environment, by specifying a filename. This will open a download window.&#x20;
4343

4444
```javascript
4545
let data = {
@@ -50,5 +50,5 @@ let data = {
5050

5151
let df = new DataFrame(data);
5252

53-
dfd.toExcel(df, { fileName: "testOut.xlsx", download: true});
53+
dfd.toExcel(df, { fileName: "testOut.xlsx"});
5454
```

0 commit comments

Comments
 (0)