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

Commit c844ab9

Browse files
committed
Merge branch 'master' of https://github.com/Gmousse/dataframe-js
2 parents f21eddf + 8033cf2 commit c844ab9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dataframe.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,13 @@ class DataFrame {
271271
/**
272272
* Replace a value by another in the DataFrame or in a column.
273273
* @param value The value to replace.
274-
* @param replacment The new value.
275-
* @param {...String} [columnNames=this[__columns__]] The columns to apply the replacment.
274+
* @param replacement The new value.
275+
* @param {...String} [columnNames=this[__columns__]] The columns to apply the replacement.
276276
* @returns {DataFrame} A new DataFrame with replaced values.
277277
*/
278-
replace(value, replacment, ...columnNames) {
278+
replace(value, replacement, ...columnNames) {
279279
return this.map(row => (columnNames.length > 0 ? columnNames : this[__columns__]).reduce(
280-
(p, n) => p.get(n) === value ? p.set(n, replacment) : p, row
280+
(p, n) => p.get(n) === value ? p.set(n, replacement) : p, row
281281
));
282282
}
283283

0 commit comments

Comments
 (0)