Skip to content

Commit b041dd3

Browse files
committed
2 parents ae61b12 + 6c51db4 commit b041dd3

17 files changed

+21
-51
lines changed

.gitbook/assets/newplot (2) (1).png

30.1 KB
Loading

.gitbook/assets/newplot (2) (2).png

30.1 KB
Loading
49.2 KB
Loading
49.2 KB
Loading
49.2 KB
Loading

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ D**anfo.js** is heavily inspired by the [Pandas](https://pandas.pydata.org/panda
1313

1414
* Danfo.js is fast and supports[ Tensorflow.js](https://js.tensorflow.org)'s tensors out of the box. This means you can [convert Danfo.js ](api-reference/dataframe/)DataFrames to Tensors, and vice versa.
1515
* Easy handling of missing data (represented as `NaN, undefined, or null`) in data
16-
* Size mutability: columns can be inserted/deleted from DataFrame
16+
* Size mutability: columns can be inserted/deleted from DataFrames
1717
* Automatic and explicit alignment: objects can be explicitly aligned to a set of labels, or the user can simply ignore the labels and let [`Series`](api-reference/series/), [`DataFrame`](api-reference/dataframe/), etc. automatically align the data for you in computations
1818
* Powerful, flexible, [groupby](api-reference/groupby/) functionality to perform split-apply-combine operations on data sets, for both aggregating and transforming data
1919
* Make it easy to convert Arrays, JSONs, List or Objects, Tensors, and differently-indexed data structures into DataFrame objects

api-reference/dataframe/danfo.dataframe.mod.md

-5
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ df_new.print()
5353
║ 3 │ 0 │ 0 ║
5454
╚════════════╧═══════════════════╧═══════════════════╝
5555
56-
5756
```
5857
{% endtab %}
5958
{% endtabs %}
@@ -100,7 +99,6 @@ df_new.print()
10099
║ 3 │ 1 │ 4 ║
101100
╚════════════╧═══════════════════╧═══════════════════╝
102101
103-
104102
```
105103
{% endtab %}
106104
{% endtabs %}
@@ -148,7 +146,6 @@ df_new.print()
148146
║ 3 │ 0 │ 0 ║
149147
╚════════════╧═══════════════════╧═══════════════════╝
150148
151-
152149
```
153150
{% endtab %}
154151
{% endtabs %}
@@ -194,7 +191,6 @@ df_new.print()
194191
╟────────────┼───────────────────┼───────────────────╢
195192
║ 3 │ 0 │ 0 ║
196193
╚════════════╧═══════════════════╧═══════════════════╝
197-
198194
```
199195
{% endtab %}
200196
{% endtabs %}
@@ -241,7 +237,6 @@ df.print()
241237
║ 3 │ 0 │ 0 ║
242238
╚════════════╧═══════════════════╧═══════════════════╝
243239
244-
245240
```
246241
{% endtab %}
247242
{% endtabs %}

api-reference/dataframe/danfo.dataframe.mul.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Get Multiplication of dataframe and other, element-wise (binary ope
44

55
# DataFrame.mul
66

7-
danfo.DataFrame.mul(other, option) 
7+
danfo.DataFrame.mul(other, option)
88

99
| Parameters | Type | Description | Default |
1010
| ---------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
@@ -143,7 +143,6 @@ df_new.print()
143143
╟────────────┼───────────────────┼───────────────────╢
144144
║ 3 │ 0 │ 8 ║
145145
╚════════════╧═══════════════════╧═══════════════════╝
146-
147146
```
148147
{% endtab %}
149148
{% endtabs %}
@@ -190,7 +189,6 @@ df_new.print()
190189
║ 3 │ 20 │ 48 ║
191190
╚════════════╧═══════════════════╧═══════════════════╝
192191
193-
194192
```
195193
{% endtab %}
196194
{% endtabs %}
@@ -236,7 +234,6 @@ df.print()
236234
╟────────────┼───────────────────┼───────────────────╢
237235
║ 3 │ 20 │ 48 ║
238236
╚════════════╧═══════════════════╧═══════════════════╝
239-
240237
```
241238
{% endtab %}
242239
{% endtabs %}

api-reference/dataframe/danfo.dataframe.pow.md

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

77
# DataFrame.pow
88

9-
danfo.DataFrame.pow(other, option) 
9+
danfo.DataFrame.pow(other, option)
1010

1111
| Parameters | Type | Description | Default |
1212
| ---------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
@@ -55,7 +55,6 @@ df_new.print()
5555
║ 3 │ 100 │ 576 ║
5656
╚════════════╧═══════════════════╧═══════════════════╝
5757
58-
5958
```
6059
{% endtab %}
6160
{% endtabs %}
@@ -102,7 +101,6 @@ df_new.print()
102101
║ 3 │ 1 │ 1024 ║
103102
╚════════════╧═══════════════════╧═══════════════════╝
104103
105-
106104
```
107105
{% endtab %}
108106
{% endtabs %}
@@ -150,7 +148,6 @@ df_new.print()
150148
║ 3 │ 0 │ 16 ║
151149
╚════════════╧═══════════════════╧═══════════════════╝
152150
153-
154151
```
155152
{% endtab %}
156153
{% endtabs %}
@@ -196,7 +193,6 @@ df_new.print()
196193
╟────────────┼───────────────────┼───────────────────╢
197194
║ 3 │ 100 │ 576 ║
198195
╚════════════╧═══════════════════╧═══════════════════╝
199-
200196
```
201197
{% endtab %}
202198
{% endtabs %}
@@ -243,7 +239,6 @@ df.print()
243239
║ 3 │ 100 │ 576 ║
244240
╚════════════╧═══════════════════╧═══════════════════╝
245241
246-
247242
```
248243
{% endtab %}
249244
{% endtabs %}

api-reference/groupby/groupby.col.md

+7-11
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ description: Obtain the column(s) per groups
44

55
# Groupby.col
66

7-
> danfo.Groupby.col\(col\_names\) \[[source](https://github.com/opensource9ja/danfojs/blob/master/danfojs/src/core/groupby.js#L104)\]
7+
> danfo.Groupby.col(col\_names) \[[source](https://github.com/opensource9ja/danfojs/blob/master/danfojs/src/core/groupby.js#L104)]
88
9-
| Parameters | Type | Description | Default |
10-
| :--- | :--- | :--- | :--- |
11-
| col\_names | Array | List of column | |
9+
| Parameters | Type | Description | Default |
10+
| ---------- | ----- | -------------- | ------- |
11+
| col\_names | Array | List of column | |
1212

1313
Returns: Groupby Data structure
1414

15-
Note: This is similar to pandas `df.groupby(["column"])["colNames"]`
15+
Note: This is similar to pandas `df.groupby(["column"])["colNames"]`
1616

1717
**Examples**
1818

@@ -50,9 +50,9 @@ grpColumnBD.apply(x=> x).print()
5050
{% endtab %}
5151
{% endtabs %}
5252

53-
Apparently the output are not that useful unless you perform some operations like max\(\), count\(\) and the likes.
53+
Apparently the output are not that useful unless you perform some operations like max(), count() and the likes.
5454

55-
```text
55+
```
5656
// select single column C
5757
5858
╔════════════╤═══════════════════╤═══════════════════╗
@@ -97,8 +97,4 @@ Apparently the output are not that useful unless you perform some operations lik
9797
║ 7 │ bar │ two │ 6 ║
9898
╚════════════╧═══════════════════╧═══════════════════╧═══════════════════╝
9999
100-
101100
```
102-
103-
104-

api-reference/plotting/box-plots.md

+3-9
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function App() {
3535
}
3636

3737
export default App;
38-
3938
```
4039
{% endcode %}
4140
{% endtab %}
@@ -61,12 +60,11 @@ export default App;
6160
</script>
6261
</body>
6362
</html>
64-
6563
```
6664
{% endtab %}
6765
{% endtabs %}
6866

69-
![](<../../.gitbook/assets/newplot (23).png>)
67+
![](../../.gitbook/assets/newplot-23-.png)
7068

7169
### Box plots on a DataFrame
7270

@@ -102,7 +100,6 @@ function App() {
102100
}
103101

104102
export default App;
105-
106103
```
107104
{% endcode %}
108105
{% endtab %}
@@ -137,12 +134,11 @@ export default App;
137134
</script>
138135
</body>
139136
</html>
140-
141137
```
142138
{% endtab %}
143139
{% endtabs %}
144140

145-
![](<../../.gitbook/assets/screen-shot-2020-08-11-at-1.20.42-am (1).png>)
141+
![](<../../.gitbook/assets/screen-shot-2020-08-11-at-1.20.42-am (1) (1).png>)
146142

147143
### Box plot for selected columns in a DataFrame
148144

@@ -183,7 +179,6 @@ function App() {
183179
}
184180

185181
export default App;
186-
187182
```
188183
{% endcode %}
189184
{% endtab %}
@@ -217,12 +212,11 @@ export default App;
217212
</script>
218213
</body>
219214
</html>
220-
221215
```
222216
{% endtab %}
223217
{% endtabs %}
224218

225-
![](<../../.gitbook/assets/newplot (24).png>)
219+
![](<../../.gitbook/assets/newplot-24- (1).png>)
226220

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

api-reference/plotting/configuring-your-plots.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The config parameter extends the [Plotly.js config](https://plotly.com/javascrip
1515
| **columns** | Array of column names to plot. | All columns in the DataFrame when applicable |
1616
| **values** | Used to configure a `pie` chart. A column name containing values for the pie. Maps 1-1 with labels. | |
1717
| **labels** | Used to configure a `pie` chart. A column name containing labels for the pie. Maps 1-1 with values. | |
18-
| **rowPositions** | Used to configure a `pie` chart. Pie chart domain row. See [https://plotly.com/javascript/reference/pie/#pie-domain-row](https://plotly.com/javascript/reference/pie/#pie-domain-row) | Range of `0 - DataFrame column length` |
18+
| **rowPositions** | Used to configure a `pie` chart. Pie chart domain row. See [https://plotly.com/javascript/reference/pie/#pie-domain-row](https://plotly.com/javascript/reference/pie/#pie-domain-row) | Range of `0 - DataFrame column length` |
1919
| **columnPositions** | Used to configure a `pie` chart. Pie chart domain column. See [https://plotly.com/javascript/reference/pie/#pie-domain-column](https://plotly.com/javascript/reference/pie/#pie-domain-column) | Range of `0 - DataFrame column length` |
2020
| **grid** | <p>Used to configure a <code>pie</code> chart. Accepts the following parameter:<br><br><strong>row</strong>: Integer size<br><strong>column</strong>: Integer size</p> | |
2121
| **tableHeaderStyle** | Table properties used for configuring table header. See [full list](https://plotly.com/javascript/reference/table/#table-header) of supported arguments. | |
@@ -80,7 +80,6 @@ function App() {
8080
}
8181

8282
export default App;
83-
8483
```
8584
{% endtab %}
8685

@@ -134,11 +133,10 @@ export default App;
134133
</script>
135134
</body>
136135
</html>
137-
138136
```
139137
{% endtab %}
140138
{% endtabs %}
141139

142-
![](<../../.gitbook/assets/newplot (32).png>)
140+
![](../../.gitbook/assets/newplot-32-.png)
143141

144142
##

api-reference/plotting/line-charts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -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).png>)
70+
![](<../../.gitbook/assets/newplot (2) (2).png>)
7171

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

api-reference/plotting/tables.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ function App() {
3838
}
3939

4040
export default App;
41-
4241
```
4342
{% endcode %}
4443
{% endtab %}
@@ -72,12 +71,11 @@ export default App;
7271
</script>
7372
</body>
7473
</html>
75-
7674
```
7775
{% endtab %}
7876
{% endtabs %}
7977

80-
![](<../../.gitbook/assets/Screen Shot 2020-08-11 at 12.34.08 AM.png>)
78+
![](../../.gitbook/assets/screen-shot-2020-08-11-at-12.34.08-am.png)
8179

8280
### Configure the header and cell of a table
8381

@@ -134,7 +132,6 @@ function App() {
134132
}
135133

136134
export default App;
137-
138135
```
139136
{% endcode %}
140137
{% endtab %}
@@ -189,9 +186,8 @@ export default App;
189186
</script>
190187
</body>
191188
</html>
192-
193189
```
194190
{% endtab %}
195191
{% endtabs %}
196192

197-
![](<../../.gitbook/assets/Screen Shot 2020-08-11 at 12.38.30 AM.png>)
193+
![](../../.gitbook/assets/screen-shot-2020-08-11-at-12.38.30-am.png)

api-reference/plotting/timeseries-plots.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,11 @@ export default App;
105105
</script>
106106
</body>
107107
</html>
108-
109108
```
110109
{% endtab %}
111110
{% endtabs %}
112111

113-
![](<../../.gitbook/assets/newplot-29- (2) (1).png>)
112+
![](<../../.gitbook/assets/newplot-29- (2) (2) (1).png>)
114113

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

building-data-driven-applications-with-danfo.js-book.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The book then shows you how to load different datasets, combine and analyze them
88

99
By the end of this app development book, you'll be able to build and embed data analytics, visualization, and ML capabilities into any JavaScript app in server-side Node.js or the browser.
1010

11-
![Danfo.js book cover](.gitbook/assets/B17076\_Cover.jpg)
11+
![Danfo.js book cover](.gitbook/assets/b17076\_cover.jpg)
1212

1313
## **What you will learn**
1414

examples/using-danfojs-in-react.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default App;
5757
5858
On running the app, we get the following output in the console:
5959
60-
![](<../.gitbook/assets/Screen Shot 2021-02-14 at 7.22.16 PM.png>)
60+
![](../.gitbook/assets/screen-shot-2021-02-14-at-7.22.16-pm.png)
6161
6262
Note that you can also import specific modules. For instance, in the code below we import only the DataFrame module:
6363

0 commit comments

Comments
 (0)