Skip to content

Commit

Permalink
change ffill and bfill fro median
Browse files Browse the repository at this point in the history
  • Loading branch information
msoltadeo committed Nov 25, 2019
1 parent 0ed6771 commit d833cfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions variable_generators/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def func():
if agg_function == 'sum':
series = series.fillna(0)
else:
series = series.fillna(method='ffill')
series = series.fillna(method='bfill')
series = series.fillna(series.median())

return series

Expand Down

0 comments on commit d833cfb

Please sign in to comment.