Skip to content

Commit f38dba7

Browse files
committed
chore: camelCase
1 parent 9683001 commit f38dba7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/danfojs-base/core/frame.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,32 +1376,32 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
13761376
* const df = new DataFrame([[1, 2, 3, 4, 5, 6], [1, 1, 2, 3, 5, 8], [1, 4, 9, 16, 25, 36]], { columns: ['A', 'B', 'C'] })
13771377
*
13781378
* // Difference with previous row
1379-
* const df0 = df.pct_change(1)
1379+
* const df0 = df.pctChange(1)
13801380
* console.log(df0)
13811381
*
13821382
* // Difference with previous column
1383-
* const df1 = df.pct_change(1, {axis: 0})
1383+
* const df1 = df.pctChange(1, {axis: 0})
13841384
* console.log(df1)
13851385
*
13861386
* // Difference with previous 3rd previous row
1387-
* const df2 = df.pct_change(3)
1387+
* const df2 = df.pctChange(3)
13881388
* console.log(df2)
13891389
*
13901390
* // Difference with following row
1391-
* const df3 = df.pct_change(-1)
1391+
* const df3 = df.pctChange(-1)
13921392
* console.log(df3)
13931393
*
13941394
* // Difference with another DataFrame
1395-
* const df4 = df.pct_change(df3)
1395+
* const df4 = df.pctChange(df3)
13961396
* console.log(df4)
13971397
* ```
13981398
*/
1399-
pct_change(other: DataFrame | Series | number[] | number, options?: { axis?: 0 | 1, inplace?: boolean }): DataFrame
1400-
pct_change(other: DataFrame | Series | number[] | number, options?: { axis?: 0 | 1, inplace?: boolean }): DataFrame | void {
1399+
pctChange(other: DataFrame | Series | number[] | number, options?: { axis?: 0 | 1, inplace?: boolean }): DataFrame
1400+
pctChange(other: DataFrame | Series | number[] | number, options?: { axis?: 0 | 1, inplace?: boolean }): DataFrame | void {
14011401
const { inplace, axis } = { inplace: false, axis: 1, ...options }
14021402

14031403
if (this.$frameIsNotCompactibleForArithmeticOperation()) {
1404-
throw Error("TypeError: pct_change operation is not supported for string dtypes");
1404+
throw Error("TypeError: pctChange operation is not supported for string dtypes");
14051405
}
14061406

14071407
if ([0, 1].indexOf(axis) === -1) {

0 commit comments

Comments
 (0)