Skip to content

Commit f30c251

Browse files
risenWgitbook-bot
authored andcommitted
GitBook: [#226] No subject
1 parent 59d4e65 commit f30c251

27 files changed

+47
-34
lines changed

.gitbook/assets/419nr0t2zml.jpeg

-26.8 KB
Binary file not shown.

.gitbook/assets/b17076_cover.jpg

-770 KB
Binary file not shown.

.gitbook/assets/image (4).png

-19.6 KB
Binary file not shown.
30.1 KB
Loading

.gitbook/assets/newplot-1-.png

-25.3 KB
Binary file not shown.

.gitbook/assets/newplot-11-.png

-25 KB
Binary file not shown.

.gitbook/assets/newplot-13-.png

-38.1 KB
Binary file not shown.

.gitbook/assets/newplot-14-.png

-12.6 KB
Binary file not shown.

.gitbook/assets/newplot-15-.png

-10.6 KB
Binary file not shown.
30.1 KB
Loading

.gitbook/assets/newplot-23-.png

-13.2 KB
Binary file not shown.

.gitbook/assets/newplot-32-.png

-65.6 KB
Binary file not shown.

.gitbook/assets/newplot-5-.png

-25.6 KB
Binary file not shown.

.gitbook/assets/newplot-9-.png

-18.4 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

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></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> |
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> |
1313

1414
## **Examples**
1515

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

api-reference/plotting/bar-charts.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ A bar plot presents categorical data with rectangular bars with lengths proporti
3535
</html>
3636
```
3737

38-
![](<../../.gitbook/assets/newplot (6).png>)
38+
![](../../.gitbook/assets/newplot-6-.png)
3939

4040
### Bar plot on DataFrame
4141

@@ -64,7 +64,7 @@ A bar plot presents categorical data with rectangular bars with lengths proporti
6464
</html>
6565
```
6666

67-
![](<../../.gitbook/assets/newplot (7).png>)
67+
![](../../.gitbook/assets/newplot-7-.png)
6868

6969
{% hint style="info" %}
7070
To customize plots, see the [Customizing your plot page](configuring-your-plots.md)

api-reference/plotting/histograms.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ function App() {
4242
}
4343

4444
export default App;
45-
4645
```
4746
{% endtab %}
4847

@@ -80,7 +79,7 @@ export default App;
8079
{% endtab %}
8180
{% endtabs %}
8281

83-
![](<../../.gitbook/assets/newplot (10).png>)
82+
![](../../.gitbook/assets/newplot-10-.png)
8483

8584
### Customized Histogram plots on DataFrame
8685

@@ -169,7 +168,7 @@ a
169168
{% endtab %}
170169
{% endtabs %}
171170

172-
![](<../../.gitbook/assets/newplot (20).png>)
171+
![](../../.gitbook/assets/newplot-20-.png)
173172

174173
{% hint style="info" %}
175174
For more configuration options for Histograms, see the [Plotly](https://plotly.com/javascript/histograms/) doc.

api-reference/plotting/line-charts.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ description: >-
3535
</html>
3636
```
3737

38-
![](<../../.gitbook/assets/newplot (4).png>)
38+
![](../../.gitbook/assets/newplot-4-.png)
3939

4040
### Line plots on DataFrame
4141

@@ -67,7 +67,7 @@ The example below shows the plot of column values against a common x-axis (index
6767
</html>
6868
```
6969

70-
![](<../../.gitbook/assets/newplot (2) (2).png>)
70+
![](<../../.gitbook/assets/newplot (2) (2) (1).png>)
7171

7272
The example below shows how to plot two columns in a DataFrame against each other.
7373

@@ -105,7 +105,7 @@ The example below shows how to plot two columns in a DataFrame against each othe
105105
</html>
106106
```
107107

108-
![](<../../.gitbook/assets/newplot (3).png>)
108+
![](../../.gitbook/assets/newplot-3-.png)
109109

110110
{% hint style="info" %}
111111
To customize your plots, see the [Customize your plot page](configuring-your-plots.md)

api-reference/plotting/pie-charts.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ function App() {
3939
}
4040

4141
export default App;
42-
4342
```
4443
{% endtab %}
4544

@@ -75,7 +74,7 @@ e
7574
{% endtab %}
7675
{% endtabs %}
7776

78-
![](<../../.gitbook/assets/newplot (12).png>)
77+
![](../../.gitbook/assets/newplot-12-.png)
7978

8079
### Multiple Pie Chart from Columns in a DataFrame
8180

@@ -117,13 +116,13 @@ e
117116
</html>
118117
```
119118

120-
![](<../../.gitbook/assets/newplot (21).png>)
119+
![](../../.gitbook/assets/newplot-21-.png)
121120

122121
### Configure Position of Pie Charts
123122

124123
If you have more than one pie chart to display, you can set the grid parameter, and also the position of each pie.
125124

126-
&#x20;For example, in the snippet below, we set the `grid` to 2 by 2 and also pass a set of row and column index positions. Each row/column position index corresponds to each pie.
125+
For example, in the snippet below, we set the `grid` to 2 by 2 and also pass a set of row and column index positions. Each row/column position index corresponds to each pie.
127126

128127
```markup
129128
<!DOCTYPE html>
@@ -163,7 +162,7 @@ If you have more than one pie chart to display, you can set the grid parameter,
163162
</html>
164163
```
165164

166-
![](<../../.gitbook/assets/newplot (22).png>)
165+
![](../../.gitbook/assets/newplot-22-.png)
167166

168167
{% hint style="info" %}
169168
For more configuration options for Pie Charts, see the [Plotly](https://plotly.com/javascript/pie-charts/) style doc.

api-reference/plotting/scatter-plots.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ In the example below, we use the titanic dataset, to show a close to real-world
4545
</html>
4646
```
4747

48-
![](<../../.gitbook/assets/newplot-8- (1) (1).png>)
48+
![](<../../.gitbook/assets/newplot-8- (1).png>)
4949

5050
### More Examples
5151

@@ -85,7 +85,7 @@ In the example below, we use the titanic dataset, to show a close to real-world
8585
</html>
8686
```
8787

88-
![](<../../.gitbook/assets/newplot (19).png>)
88+
![](../../.gitbook/assets/newplot-19-.png)
8989

9090
{% hint style="info" %}
9191
To customize your plots, see the [Customize your plot page](configuring-your-plots.md)

api-reference/plotting/violin-plots.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default App;
6464
{% endtab %}
6565
{% endtabs %}
6666

67-
![](<../../.gitbook/assets/newplot (25).png>)
67+
![](../../.gitbook/assets/newplot-25-.png)
6868

6969
### Box plots on a DataFrame
7070

@@ -101,7 +101,6 @@ function App() {
101101
}
102102

103103
export default App;
104-
105104
```
106105
{% endcode %}
107106
{% endtab %}
@@ -141,7 +140,7 @@ export default App;
141140
{% endtab %}
142141
{% endtabs %}
143142

144-
![](<../../.gitbook/assets/newplot (26).png>)
143+
![](../../.gitbook/assets/newplot-26-.png)
145144

146145
### Box plot for selected columns in a DataFrame
147146

@@ -177,7 +176,6 @@ function App() {
177176
}
178177

179178
export default App;
180-
181179
```
182180
{% endcode %}
183181
{% endtab %}
@@ -211,12 +209,11 @@ export default App;
211209
</script>
212210
</body>
213211
</html>
214-
215212
```
216213
{% endtab %}
217214
{% endtabs %}
218215

219-
![](<../../.gitbook/assets/newplot (27).png>)
216+
![](../../.gitbook/assets/newplot-27-.png)
220217

221218
{% hint style="info" %}
222219
To customize your plots, see the [Configuring your plot page](configuring-your-plots.md)

examples/migrating-to-the-stable-version-of-danfo.js.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The following list summarizes some of these updates:
1313
* **Typescript support:** This new version has been completely re-written using Typescript. This means we now have well-defined types that increase the developer experience.
1414
* **Standard naming convention:** Functions, methods, classes, and variable names have been standardized to follow JavaScript best practices.
1515
* Standardize function argument: Functions and methods have been updated to accept arguments and parameters intuitively resulting in improved developer experience.
16-
* **New features**: We added lots of new features which users have been requesting for. For example:
16+
* **New features**: We added a couple of new features which users have been requesting for. For example:
1717
* Stream and process large CSV data
1818
* General bug fixes and improvements
1919
* Better error messages
@@ -28,19 +28,19 @@ Update your function and/or method names to use camelCase instead of snake\_case
2828

2929
```javascript
3030
read_csv ==> readCSV
31-
to_json ==> toCSV
31+
to_json ==> toJSON
3232
drop_duplicates ==> dropDuplicates
3333
```
3434

35-
**Note:** that your code editor auto-complete will general suggest the new function or method names, so it will be easier to update to the new names. If using Typescript, then it is even easier as the TS compiler will show you warnings.
35+
**Note:** that your code editor will generally suggest the new function or method names, so it will be easier to update to the new names. If using Typescript, then it is even easier as the TS compiler will show you warnings.
3636

3737
### Functions and Methods argument structure
3838

3939
Another major breaking change of v1, is that the structure of arguments/parameters in most functions has been updated to be more intuitive.
4040

4141
In general, it is important to understand our thought process behind this, so, here goes:
4242

43-
Assuming we take the method called _**rename**_, which takes required object mapper, as well as, optional configuration argument. In pre-v1 version of Danfojs, the function signature is as follows:
43+
Assuming we take the method called _**rename**_, which takes the required argument **mapper**, as well as, an optional configuration argument. In pre-v1 version of Danfojs, the function signature is as follows:
4444

4545
```
4646
rename( { mapper, axis, inplace } ) => DataFrame

getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2284,7 +2284,7 @@ On a DataFrame, the [`plot()`](https://pandas.pydata.org/pandas-docs/stable/refe
22842284
</html>
22852285
```
22862286

2287-
![](<.gitbook/assets/newplot-2- (1) (1).png>)
2287+
![](<.gitbook/assets/newplot-2- (1) (1) (1).png>)
22882288

22892289
### Getting data in/out
22902290

release-notes.md

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# Release Notes
22

3-
### \[LATEST] Release Node (v1.0.3), Browser (v1.0.3)
3+
### \[LATEST] Release Node (v1.1.2), Browser (v1.1.2)
4+
5+
**Date:** 12th October 2022
6+
7+
#### What's Changed
8+
9+
* Fix copy/paste error in df.apply documentation by @kgeis in https://github.com/javascriptdata/danfojs/pull/469
10+
* Makes an ESM bundle using esbuild by @dcrescim in https://github.com/javascriptdata/danfojs/pull/447
11+
* Fix invalid assert.throws statements by @igonro in https://github.com/javascriptdata/danfojs/pull/419
12+
* Allow Series.append() to use zero, fixes #486 by @BowTiedAztec in https://github.com/javascriptdata/danfojs/pull/487
13+
* Add error handler for io functions by @risenW in https://github.com/javascriptdata/danfojs/pull/503
14+
* add support for excel parsing options arg by @risenW in https://github.com/javascriptdata/danfojs/pull/505
15+
* Chore/add default support for datetime by @risenW in https://github.com/javascriptdata/danfojs/pull/511
16+
17+
#### Contributors: @risenW @BowTiedAztec @kgeis
18+
19+
**Full Changelog**: https://github.com/javascriptdata/danfojs/compare/v1.1.1...v1.1.2
20+
21+
### Release Node (v1.0.3), Browser (v1.0.3)
422

523
**Date:** 8th March 2022
624

@@ -13,7 +31,7 @@
1331
* fix(test): Explicit type in test allows TS to compile by @NeonSpork in https://github.com/javascriptdata/danfojs/pull/411
1432
* Jan kaul esmodule by @risenW in https://github.com/javascriptdata/danfojs/pull/415
1533

16-
#### Contributors: @risenW @steveoni @adamgilman @igonro @NeonSpork&#x20;
34+
#### Contributors: @risenW @steveoni @adamgilman @igonro @NeonSpork
1735

1836
**Full Changelog**: https://github.com/javascriptdata/danfojs/compare/v1.0.2...v1.0.3
1937

0 commit comments

Comments
 (0)