Skip to content

Commit 4756466

Browse files
authored
Merge pull request #247 from opensource9ja/239-dataframe-cant-drop-or-rename
[#239] Dataframe can't drop and rename
2 parents b09f1af + 2287a0d commit 4756466

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

danfojs-browser/src/core/frame.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2058,6 +2058,7 @@ export class DataFrame extends Ndframe {
20582058
col_vals.forEach((col, i) => {
20592059
// self[col_names[i]] = new Series(col, { columns: col_names[i], index: self.index })
20602060
Object.defineProperty(self, col_names[i], {
2061+
configurable: true,
20612062
get() {
20622063
return new Series(col, { columns: col_names[i], index: self.index });
20632064
},

danfojs-node/src/core/frame.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,6 +2074,7 @@ export class DataFrame extends Ndframe {
20742074
col_vals.forEach((col, i) => {
20752075
// self[col_names[i]] = new Series(col, { columns: col_names[i], index: self.index })
20762076
Object.defineProperty(self, col_names[i], {
2077+
configurable: true,
20772078
get() {
20782079
return new Series(col, { columns: col_names[i], index: self.index });
20792080
},

0 commit comments

Comments
 (0)