Skip to content

Commit 245fa25

Browse files
risenWgitbook-bot
authored andcommitted
GitBook: [#224] No subject
1 parent fcf2544 commit 245fa25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

0 commit comments

Comments
 (0)