You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/migrating-to-the-stable-version-of-danfo.js.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ The following list summarizes some of these updates:
13
13
***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.
14
14
***Standard naming convention:** Functions, methods, classes, and variable names have been standardized to follow JavaScript best practices.
15
15
* 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:
17
17
* Stream and process large CSV data
18
18
* General bug fixes and improvements
19
19
* Better error messages
@@ -28,19 +28,19 @@ Update your function and/or method names to use camelCase instead of snake\_case
28
28
29
29
```javascript
30
30
read_csv ==> readCSV
31
-
to_json ==>toCSV
31
+
to_json ==>toJSON
32
32
drop_duplicates ==> dropDuplicates
33
33
```
34
34
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.
36
36
37
37
### Functions and Methods argument structure
38
38
39
39
Another major breaking change of v1, is that the structure of arguments/parameters in most functions has been updated to be more intuitive.
40
40
41
41
In general, it is important to understand our thought process behind this, so, here goes:
42
42
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:
0 commit comments