Skip to content

Commit ac64bd0

Browse files
committed
update group by doc
1 parent 9e2c55d commit ac64bd0

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

Diff for: SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
* [Line Charts](api-reference/plotting/line-charts.md)
204204
* [Customizing your plots](api-reference/plotting/configuring-your-plots.md)
205205
* [Groupby](api-reference/groupby/README.md)
206-
* [Groupby.get\_groups](api-reference/groupby/groupby.get\_groups.md)
206+
* [Groupby.getGroups](api-reference/groupby/groupby.getGroups.md)
207207
* [Groupby.col](api-reference/groupby/groupby.col.md)
208208
* [Groupby.max](api-reference/groupby/groupby.max.md)
209209
* [Groupby.min](api-reference/groupby/groupby.min.md)

Diff for: api-reference/groupby/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: 'GroupBy objects are returned by groupby calls: danfo.DataFrame.gro
88

99
| | |
1010
| :--- | :--- |
11-
| [`GroupBy.get_group`](groupby.get_groups.md) | Construct DataFrame from group with provided name. |
11+
| [`GroupBy.get_group`](groupby.getGroup.md) | Construct DataFrame from group with provided name. |
1212

1313
### Function application
1414

Diff for: api-reference/groupby/groupby.getGroup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ grp.getGroup(["bar"]).print()
7474
╚═══╧═══════════════════╧═══════════════════╧═══════════════════╧═══════════════════╝
7575
```
7676

77-
Group dataframe by two columns and obtain their groups. Since the dataframe is grouped by two columns we most specify two keys in the get\_groups belonging to these two columns
77+
Group dataframe by two columns and obtain their groups. Since the dataframe is grouped by two columns we most specify two keys in the getGroups belonging to these two columns
7878

7979
{% tabs %}
8080
{% tab title="Node" %}
@@ -102,7 +102,7 @@ grp.getGroup(["bar","one"]).print()
102102
{% endtabs %}
103103

104104
```text
105-
//get_groups(["foo","one"]
105+
//getGroup(["foo","one"]
106106
107107
108108
Shape: (2,4)

Diff for: api-reference/groupby/groupby.get_groups.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
description: Obtain the data for each element of the groupby column
33
---
44

5-
# Groupby.get\_groups
5+
# Groupby.getGroups
66

7-
> danfo.Groupby.get\_groups(key) \[[source](https://github.com/opensource9ja/danfojs/blob/master/danfojs/src/core/groupby.js#L313)]
7+
> danfo.Groupby.getGroups(key) \[[source](https://github.com/opensource9ja/danfojs/blob/master/danfojs/src/core/groupby.js#L313)]
88
99
| Parameters | Type | Description | default |
1010
| ---------- | ----- | ----------------------------- | ------- |
@@ -34,9 +34,9 @@ let df = new dfd.DataFrame(data)
3434

3535
let grp = df.groupby(["A"])
3636

37-
grp.get_groups(["foo"]).print()
37+
grp.getGroup(["foo"]).print()
3838

39-
grp.get_groups(["bar"]).print()
39+
grp.getGroup(["bar"]).print()
4040
```
4141
{% endtab %}
4242
{% endtabs %}
@@ -74,7 +74,7 @@ grp.get_groups(["bar"]).print()
7474
╚═══╧═══════════════════╧═══════════════════╧═══════════════════╧═══════════════════╝
7575
```
7676

77-
Group dataframe by two columns and obtain their groups. Since the dataframe is grouped by two columns we most specify two keys in the get\_groups belonging to these two columns
77+
Group dataframe by two columns and obtain their groups. Since the dataframe is grouped by two columns we most specify two keys in the getGroups belonging to these two columns
7878

7979
{% tabs %}
8080
{% tab title="Node" %}
@@ -94,15 +94,15 @@ let df = new dfd.DataFrame(data)
9494

9595
let grp = df.groupby(["A","B"])
9696

97-
grp.get_groups(["foo","one"]).print()
97+
grp.getGroup(["foo","one"]).print()
9898

99-
grp.get_groups(["bar","one"]).print()
99+
grp.getGroup(["bar","one"]).print()
100100
```
101101
{% endtab %}
102102
{% endtabs %}
103103

104104
```
105-
//get_groups(["foo","one"]
105+
//getGroup(["foo","one"]
106106
107107
108108
Shape: (2,4)
@@ -115,7 +115,7 @@ grp.get_groups(["bar","one"]).print()
115115
║ 1 │ foo │ one │ 6 │ 7 ║
116116
╚═══╧═══════════════════╧═══════════════════╧═══════════════════╧═══════════════════╝
117117
118-
//get_groups(["bar","one"])
118+
//getGroup(["bar","one"])
119119
120120
121121
Shape: (1,4)

Diff for: getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2030,9 +2030,9 @@ let df = new dfd.DataFrame(data)
20302030

20312031
let grp = df.groupby(["A"])
20322032

2033-
grp.get_groups(["foo"]).print()
2033+
grp.getGroup(["foo"]).print()
20342034

2035-
grp.get_groups(["bar"]).print()
2035+
grp.getGroup(["bar"]).print()
20362036
```
20372037

20382038
```

0 commit comments

Comments
 (0)