Skip to content

Commit

Permalink
Update field.py
Browse files Browse the repository at this point in the history
To solve bad return type error
  • Loading branch information
ccl-core authored Nov 3, 2023
1 parent eb48502 commit 39877c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ def __call__(self, df: pd.DataFrame) -> pd.Series:
series = _name_series(value, self.node)
transforms = functools.partial(apply_transforms_fn, source=self.node.source)
cast = functools.partial(_cast_value, data_type=self.node.data_type)
return series.apply(transforms).apply(cast)
return pd.Series(series.apply(transforms).apply(cast))

0 comments on commit 39877c9

Please sign in to comment.