Skip to content

Commit

Permalink
Added reset function
Browse files Browse the repository at this point in the history
  • Loading branch information
argenisleon committed Nov 6, 2019
1 parent 05a105b commit 7a3c113
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions optimus/dataframe/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,12 @@ def debug(self):
"""
print(self.rdd.toDebugString().decode("ascii"))

@add_method(DataFrame)
def reset(self):

df = self.set_meta("transformations.actions", {})
Profiler.instance.output_columns = {}
return df

@add_method(DataFrame)
def send(self, name=None, infer=True, mismatch=None, stats=True):
Expand Down

0 comments on commit 7a3c113

Please sign in to comment.