Skip to content

Commit

Permalink
Agrego parametros para post-wrangling
Browse files Browse the repository at this point in the history
  • Loading branch information
joangq committed May 29, 2024
1 parent d10723e commit cc9b898
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions data_transformers/dtransformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,16 @@ def __call__(self, *args, **kwargs) -> Tuple[dict, DataFrame]:
return transformer_r((final_args, self.f(df=applied_args['df'])))

@staticmethod
def convert(f):
def convert(f, name=None, external_sourcelines=None):
if external_sourcelines is None:
external_sourcelines = inspect.getsourcelines(f)

if name is None:
name = f.__name__

kwargs = {
'external_sourcelines': inspect.getsourcelines(f),
'name': f.__name__
'external_sourcelines': external_sourcelines,
'name': name
}

params = inspect.signature(f).parameters
Expand Down

0 comments on commit cc9b898

Please sign in to comment.