Skip to content
This repository was archived by the owner on Aug 17, 2024. It is now read-only.

Commit dd8d4b9

Browse files
committed
Merge branch 'feature/sql' into develop
2 parents 10b8cd3 + ae32df7 commit dd8d4b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+27696
-5590
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"presets": ["es2015", "stage-0"],
3-
"plugins": ["transform-runtime"]
3+
"plugins": ["transform-decorators-legacy", "transform-decorators", "transform-runtime"]
44
}

.eslintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"indent": [2, 4],
99
"no-console": 0,
1010
"object-curly-spacing": 0,
11-
"no-spaced-func": 0
11+
"no-spaced-func": 0,
12+
"no-eval": 0,
13+
"no-use-before-define": 0
1214
}
1315
}

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js:
3+
- "6"
4+
- "5"
5+
- "4"
6+
- "0.12"

CHANGELOG.md

Lines changed: 60 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,64 @@
1-
# changelog
1+
# Changelog
22

33
---
44

5-
## v0.2.7
5+
## v1.0.0
66

7-
**Author**: Guillaume Mousnier.
7+
**Author**: Guillaume Mousnier
8+
9+
**Type**: Major Release
10+
11+
**Changes**:
12+
- Adding the sql module. Related to the issue [#5](https://github.com/Gmousse/dataframe-js/issues/5).
13+
- Adding a GroupedDataFrame object (obtained when group by) with aggregates. Related to the issue [#8](https://github.com/Gmousse/dataframe-js/issues/8).
14+
- DataFrame.groupBy aggregates now returns a DataFrame with an aggregation column. Related to the issue [#8](https://github.com/Gmousse/dataframe-js/issues/8). /!\ Incompatible with older versions.
15+
- DataFrame.groupBy can be used on multiple columns. ex: df.groupBy('col1', 'col2'). Related to the issues [#4](https://github.com/Gmousse/dataframe-js/issues/4) and [#8](https://github.com/Gmousse/dataframe-js/issues/8).
16+
- Adding DataFrame.renameAll() to rename each columns of the DataFrame (current .rename()). Related to issue [#12](https://github.com/Gmousse/dataframe-js/issues/12).
17+
- Changing DataFrame.rename() which now renames only one column (see .renameAll()). Related to issue [#12](https://github.com/Gmousse/dataframe-js/issues/12). /!\ Incompatible with older versions.
18+
- Changing DataFrame.matrix.isCommutative() which now receives DataFrame as parameter and not an Array, in order to be more consistant with all the API. /!\ Incompatible with older versions.
19+
- Adding an optional parameter for DataFrame.toArray(), columnName, allowing to return only one column as Array. Related to issue [#11](https://github.com/Gmousse/dataframe-js/issues/11).
20+
- Adding DataFrame.toCollection(), to return the DataFrame as a collection of dictionnaries (object). Related to issue [#9](https://github.com/Gmousse/dataframe-js/issues/9).
21+
- Adding an optional parameter to DataFrame.toJSON(asCollection) to build a JSON object containing a collection of Object.
22+
- Adding DataFrame.stat.sum() in the stat module. Related to issue [#10](https://github.com/Gmousse/dataframe-js/issues/10).
23+
- Adding static DataFrame.fromCSV(), .fromText() and .fromJSON() method, allowing to create a DataFrame (via a Promise) from files (path or url).
24+
- Adding DataFrame.dropDuplicates() which removes duplicated rows.
25+
- DataFrame.randomSplit() is renamed in DataFrame.bisect(). /!\ Incompatible with older versions.
26+
- Debbugging DataFrame.show(). Related to the issue [#7](https://github.com/Gmousse/dataframe-js/issues/7).
27+
- Debbugging DataFrame.sortBy(). Now, it returns an error when applied on a mixed type column. Related to the issues [#3](https://github.com/Gmousse/dataframe-js/issues/3) and [#6](https://github.com/Gmousse/dataframe-js/issues/6).
28+
- Debbugging DataFrame.sortBy() when used with string.
29+
- DataFrame.distinct() now throw correctly NoSuchColumnError when passing an incorrect columnName.
30+
- Adding Error messages on Row, DataFrame, GroupedDataFrame and modules...
31+
- join methods are completely revisited, providing a result near from sql. Moreover you can join on multiple columns.
32+
- DataFrame.replace() columnNames arguments are now passed as String (for a single column) or in Array (for multiple ones).
33+
- DataFrame.transpose() has now an optional argument, transposeColumnNames which place columnNames as rowNames.
34+
- Adding unit tests to cover more cases.
35+
- Unit tests are now realized on es5 compiled version.
36+
- Clarifying error messages.
37+
- Adding `@checktypes` (see [es7-checktypes-decorator](https://github.com/Gmousse/es7-checktypes-decorator)) to handle wrong arguments types.
38+
- Removing InputTypeError, now replaced by `@checktypes`. /!\ Incompatible with older versions.
39+
40+
---
41+
42+
## v0.2.9
43+
44+
**Author**: Guillaume Mousnier
845

946
**Type**: Hotfix
1047

1148
**Changes**:
12-
- Updating keywords and presentation.
49+
- Fixing issue [#2](https://github.com/Gmousse/dataframe-js/issues/2).
50+
- Defined as first real stable version.
1351

52+
---
53+
54+
## v0.2.7
1455

56+
**Author**: Guillaume Mousnier
57+
58+
**Type**: Hotfix
59+
60+
**Changes**:
61+
- Updating keywords and presentation.
1562

1663
---
1764

@@ -24,12 +71,11 @@
2471
**Changes**:
2572
- Just some docs.
2673

27-
2874
---
2975

3076
## v0.2.5
3177

32-
**Author**: Guillaume Mousnier.
78+
**Author**: Guillaume Mousnier
3379

3480
**Type**: Hotfix
3581

@@ -40,7 +86,7 @@
4086

4187
## v0.2.4
4288

43-
**Author**: Guillaume Mousnier.
89+
**Author**: Guillaume Mousnier
4490

4591
**Type**: Hotfix
4692

@@ -52,7 +98,7 @@
5298

5399
## v0.2.3
54100

55-
**Author**: Guillaume Mousnier.
101+
**Author**: Guillaume Mousnier
56102

57103
**Type**: Hotfix
58104

@@ -64,33 +110,33 @@
64110

65111
## v0.2.2
66112

67-
**Author**: Guillaume Mousnier.
113+
**Author**: Guillaume Mousnier
68114

69115
**Type**: Hotfix
70116

71117
**Changes**:
72-
- Removing jquery in dependencies
118+
- Removing jquery in dependencies.
73119

74120
---
75121

76122
## v0.2.1
77123

78-
**Author**: Guillaume Mousnier.
124+
**Author**: Guillaume Mousnier
79125

80126
**Type**: Feature
81127

82128
**Changes**:
83-
- First functional version
129+
- First functional version.
84130

85131
---
86132

87133
## v0.1.0
88134

89-
**Author**: Guillaume Mousnier.
135+
**Author**: Guillaume Mousnier
90136

91137
**Type**: Feature
92138

93139
**Changes**:
94-
- Init the repo
140+
- Init the repo.
95141

96142
---

0 commit comments

Comments
 (0)